#Why is ThemeOverride not working?

5 messages · Page 1 of 1 (latest)

pearl willow
#

func resize_font():
var wheight:int = get_window().size[1];
var fheight:int = int(wheight * 0.061728);
print(fheight)
var dynamic_font = self.get_theme_font("font") as FontFile
if dynamic_font:
dynamic_font.font_weight = fheight;

self.add_theme_font_override("RESIZED", dynamic_font)
forest nest
#

the only font override label has is just called "font".

pearl willow
#

Thank You!

#

!close