MV [Solved] Different font size in menus to messages

I am using Yanflu Core and Message Core to set my font size globally.

However, I'd like to change the font size of my text in messages.
I want it to be different from everywhere else.
Therefore changing the setting in Yanfly is no good... because that changes it everywhere.

Anyone know how to set the font size in menus? Independently of anywhere else?
If you have Message Core, you can use \fs[newSize] tag to change font size in messages.
Thanks, but I am trying to avoid having to put \shortcodes in every message. I am happy with the font size in messages that I have set in Yanfly's plugin...
Now I just want to change it in the main menu (e.g equip scene, item scene etc)
I haven't tested, but one of these might do what you want (save as a .js file, import as a plugin):
Spoiler: Option 1
JavaScript:
(function() {
'use strict';
  const mnuFontSize = function() {
    return 28;  // <- menu font size! Change this number.
  };
  // All selectable windows
  Window_Selectable.prototype.standardFontSize = mnuFontSize;
  // Show Choices
  Window_ChoiceList.prototype.standardFontSize = Window_Base.prototype.standardFontSize;
  // Input Number
  Window_NumberInput.prototype.standardFontSize = Window_Base.prototype.standardFontSize;
  // Select Item
  Window_EventItem.prototype.standardFontSize = Window_Base.prototype.standardFontSize;
})();
Spoiler: Option 2
JavaScript:
(function() {
'use strict';
  const msgFontSize = function() {
    return 28;  // <- message font size! Change this number.
  };
  // Show Text
  Window_Message.prototype.standardFontSize = msgFontSize;
  // Show Scrolling Text
  Window_ScrollText.prototype.standardFontSize = msgFontSize;
  // Show Choices
  Window_ChoiceList.prototype.standardFontSize = msgFontSize;
  // Input Number
  Window_NumberInput.prototype.standardFontSize = msgFontSize;
  // Select Item
  Window_EventItem.prototype.standardFontSize = msgFontSize;
  // YEP Message Core - Show Text - name window
  Window_NameBox.prototype.standardFontSize = msgFontSize;
})();
This is great, thank you!
With my limited JS knowledge, I can also see how to expand this script a little.

I am guessing I can change "standardFontSize" to something else for line height? probably "lineHeight"

Thanks a lot
@dwiseman57: yes, lineHeight (default 36) should work. Remember it has to be a function, like in the examples I gave for standardFontSize. 👋
Thank you! Admin, this thread can be closed

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-different-font-size-in-menus-to-messages.146601/