Ace Message System - Change "Name Window" Font-Size Only?

By default, they both seem to share the same font size settings, but I would like to have more control over them independently, so that I can adjust the font size separately for the message window and the name window.

Is there a way to change the font-size specifically for each of these windows without affecting the other?

Here's a link to the script: https://github.com/Archeia/YEARepo/blob/master/Core/Ace_Message_System.rb

Thank you so much!
Have you tried \{\n<x>\}
no idea if it would work but might make the name bigger.
Otherwise you could try adding after line 532
contents.font.size = YEA::MESSAGE::NAME_WINDOW_FONT_SIZE
then add that constant to the module maybe line 193
NAME_WINDOW_FONT_SIZE = 28
Have you tried \{\n<x>\}
no idea if it would work but might make the name bigger.
Otherwise you could try adding after line 532
contents.font.size = YEA::MESSAGE::NAME_WINDOW_FONT_SIZE
then add that constant to the module maybe line 193
NAME_WINDOW_FONT_SIZE = 28
Sadly neither seems to do anything 😢
Sadly neither seems to do anything 😢
My mistake. I didn't see that it was using draw_text_ex
This resets the font size.
So you can do this.
Ruby:
class Window_NameMessage < Window_Base
  #--------------------------------------------------------------------------
  # * Draw Text with Control Characters
  #--------------------------------------------------------------------------
  def draw_text_ex(x, y, text)
    reset_font_settings
    contents.font.size = YEA::MESSAGE::NAME_WINDOW_FONT_SIZE
    text = convert_escape_characters(text)
    pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
    process_character(text.slice!(0, 1), text, pos) until text.empty?
  end
end
But if your font is larger that what the window can hold (because the height is set to fitting_height(1))
then you'll need to adjust that value in the initialize method. line 528/529 depending on if you added the line I mentioned previously.
My mistake. I didn't see that it was using draw_text_ex
This resets the font size.
So you can do this.
Ruby:
class Window_NameMessage < Window_Base
  #--------------------------------------------------------------------------
  # * Draw Text with Control Characters
  #--------------------------------------------------------------------------
  def draw_text_ex(x, y, text)
    reset_font_settings
    contents.font.size = YEA::MESSAGE::NAME_WINDOW_FONT_SIZE
    text = convert_escape_characters(text)
    pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
    process_character(text.slice!(0, 1), text, pos) until text.empty?
  end
end
But if your font is larger that what the window can hold (because the height is set to fitting_height(1))
then you'll need to adjust that value in the initialize method. line 528/529 depending on if you added the line I mentioned previously.
Thank you so much for this! I also really appreciate you taking the time to explain the height portion.
If I also wanted to change the font for just the name, I assume I would do this to have control over it?
Ruby:
    contents.font.name = YEA::MESSAGE::NAME_WINDOW_FONT_NAME
Yes just repeating the same process should work just fine.
If you want to change the font during the game or font size then a more intricate process would be done by using variables.

Original thread: https://forums.rpgmakerweb.com/threads/ace-message-system-change-name-window-font-size-only.175869/