RPG Maker Forums

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:
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])
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!

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top