#Permanent Sized Text Regardless of GUI Scale

1 messages · Page 1 of 1 (latest)

clear whale
#

Im trying to make a certain part of my UI not scale with the GUI Scale setting
I have it to where the actual image doesnt but the text still does
Can someone please help me?

leaden night
#

I don't think this is possible; a label's size is determined by "font_size", an enum of four predefined values (this is where the GUI Scale Modifier gets applied), and "font_scale_factor", where you can specify the exact scale of the font based off of "font_size". There is no binding that lets you get the current GUI Scale Modifier setting that I know of, but if there was one you would be able to do this. What you could do is have download instructions for your pack that include "Set GUI Scale Modifier to X" so that everyone sees the same thing at the same scale.
Note that not allowing the user to scale font size is very bad for user personalization and experience because some users may have difficulty seeing smaller fonts, so be careful where you apply this if you are able to get it to work.