Title. I've been playing around with some new windows and am trying to access attributes of the Font class, though that's easier said than done apparently. I have the following code in a Window_Selectable subclass:
This results in the following:
So basically, only the font.size attribute gets changed, which is extremely confusing. I've also tried this with various fonts which have pre-installed italics (somehow font.name also works). I've tried searching for any overwrites of the Font class, but I don't believe any of my other scripts tamper with that. Weirdly, the escape characters used in Yanfly's Message System allow me to italicize message font, but I still can't do so with simple draw_text. For what it's worth, font.bold, font.outline, and font.shadow also don't work.
Any help would be much appreciated!
Code:
contents.font.size = 19
contents.font.italic = true
change_color(text_color(18)) if @persona_texts[0] != "Unknown Trait"
draw_text(x, y, width, line_height, @persona_texts[0])
change_color(normal_color)
change_color(text_color(1)) if @persona_texts[1] != "Unknown Trait"
draw_text(x, y + 36, width, line_height, @persona_texts[1])
change_color(normal_color)
change_color(text_color(3)) if @persona_texts[2] != "Unknown Trait"
draw_text(x, y + 72, width, line_height, @persona_texts[2])
So basically, only the font.size attribute gets changed, which is extremely confusing. I've also tried this with various fonts which have pre-installed italics (somehow font.name also works). I've tried searching for any overwrites of the Font class, but I don't believe any of my other scripts tamper with that. Weirdly, the escape characters used in Yanfly's Message System allow me to italicize message font, but I still can't do so with simple draw_text. For what it's worth, font.bold, font.outline, and font.shadow also don't work.
Any help would be much appreciated!