Log in

View Full Version : Text won't stay



Nuke Master 0
July 22nd, 2020, 18:12
So I am having trouble keeping my text in place whenever I reboot fantasy grounds.

Examples:
Before rebooting it - 37952

After rebooting it - 37953


Is there a way to lock in the text? Or maybe an extension I can download?

Trenloe
July 22nd, 2020, 18:20
Are you using multiple spaces to position the text? If so, then that won't work. There is a "feature" in the custom XML framework used by FG that converts more than one space to a single space when a campaign is loaded. There's no way around this I'm afraid.

Nuke Master 0
July 22nd, 2020, 18:32
Are you using multiple spaces to position the text? If so, then that won't work. There is a "feature" in the custom XML framework used by FG that converts more than one space to a single space when a campaign is loaded. There's no way around this I'm afraid.

Darn, alright then. Thank you.

LordEntrails
July 22nd, 2020, 20:12
Not sure if it works, but you can try a line feed (shift-enter) or just a carriage return (enter) inside the cell to see if you get what you want.

Griogre
July 22nd, 2020, 20:22
To elaborate on what Trenloe said: extra spaces are stripped out by the FG's XML file writer when the file is written to disk. However you can use non breaking spaces which the writer doesn't strip out. In FGC on Windows you can add a non breaking space by pressing Alt + 0160 (holding down the Alt key and typing in 0160 on the numeric keypad - the leading 0 is important). On a Mac I think you use the option key instead of Alt.

Trenloe
July 22nd, 2020, 20:28
Just be careful with character code 160 - this won't work in FGU and will display as a block.

Griogre
July 22nd, 2020, 20:36
Any better luck with 255?

Griogre
July 22nd, 2020, 20:41
If you edit the XML directly you might be able to get


 

to work in FGU.

Trenloe
July 22nd, 2020, 20:45
I would be very careful about using codes in the range around 160 in FGU, as this has been called out as a problem with some issues reported recently.

LordEntrails
July 22nd, 2020, 21:38
I thought FGU only recognized character codes up to 128? Not sure though. There are some posts from Moon around here somewhere with details :)