PDA

View Full Version : 5E extension allowing players to select their font size?



DragonsDen13
June 8th, 2020, 01:47
Is there a Font Extension that a DM can run that allows each player to select their preferred font sizes? (at least for chat if not each category)

If there is not, does anyone know if it is even possible to make such an extension?

I am looking to try and work my way into learning to make some and I thought I would try for this but I figured I would ask before I wasted too much time on it, if it is not possible.

Thanks in advance for any answer.

LordEntrails
June 8th, 2020, 03:43
There is nothing like this currently. There might be a way to do something. I'm not a developer though so I can't be certain. In general FG is designed so that the GM and all players run the same code. But, there are some things like options and /scaleui that are session/client independent. So, a clever programmer might be able to figure something out.

mattekure
June 8th, 2020, 11:51
I dont believe its possible. Fonts are declared/defined in the xml at load time, and cant be redefined by script.

Trenloe
June 8th, 2020, 12:11
As mentioned above, fonts are defined in the base code. Info on the definition here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4162481/font

And these definitions are used within the control XML specification. Within the text control object: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4096428/textbasecontrol

You can use the setFont command to change the font used within a specific control: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4096428/textbasecontrol#setFont

So, what you ask is possible, but it means you'd need to use the setFont command for all of the controls that you want to change - which could literally be hundreds, depending on exactly what you want to change.

So, possible? Yes. Feasible and reliable? Probably not, unless you're only changing a few specific controls.

DragonsDen13
June 8th, 2020, 14:28
Thank you all for the answers. Looks like it is something I shouldn't even attempt to figure out. I was hoping it might be possible to add a new "slash command" that would allow players to type in a font height; something like "/chatfont 14", so not changing the font type just the font size.

Thanks again though for the answers.