Menu window size

Hi, so I want to create a game with much higher resolution than the regular, so the screen dimensions are also very very huge. Like, over 4000x2000. Anyways, I have this problem now, that the font in the menu appears really small, so I try to resize it, and it works, but all the letters get cut out...I think it is because the window is really small for such big letters. Anyone can help? Here are a few screenshots btw:

1722425686666.png

1722425708005.png

1722425758170.png

That's all, if anyone could help it would be greaaaately appreciated!! Thx
most plugins and default core are based on screen width and height and
adjust accordingly.

if you use a custom with fixed numbers, this can change, as most text
fit the window innerwidth to fit.

while the save scene use Graphic.boxWidth, it takes the entire
screen resolution width and height.

but I doubt anyone uses that big resolution though.
so explain more, are you using custom plugins and if so, which one?

what is your ideal window size? or margin around the window?

the more info we have, the better we can help and guide you through.
most plugins and default core are based on screen width and height and
adjust accordingly.

if you use a custom with fixed numbers, this can change, as most text
fit the window innerwidth to fit.

while the save scene use Graphic.boxWidth, it takes the entire
screen resolution width and height.

but I doubt anyone uses that big resolution though.
so explain more, are you using custom plugins and if so, which one?

what is your ideal window size? or margin around the window?

the more info we have, the better we can help and guide you through.
Alright, to answer your questions, yes I am using some plugins(they are quite a lot but both for the screen resolution and font size I'm using YEP core engine). I do want the window to have an ideal size, but I thought if I had the option to change it I could play around with it a little and find out what size suits the font and layout best. Right now, though, no, I am not sure what its size would be...I don't know if that was enough info from my end, but I am pretty sure that's all I can tell you for this. (Keep in mind that I am new here, even if my account is old this is the first game I am actually persistent to make lol and its been a month since I started, so sorry if I'm not helpful enough)
if you have no custom menu's, altering the menu window's
can be altered to fix sizes or - size or margin.

but while most resolutions are around 1920x1080, math of the
(Graphics._boxWidth - x) / 2 would be ideal to use as well for the y position.
as I don't know how big the 4k is on screen, we need to manipulate mostly
all ways (menu, options, item, skills etc etc).

so what sizes of the window's is ideal for you?
I can make a mini plugin where you can set all the sizes inside or through params.
JavaScript:
Window_Base.prototype.lineHeight = function() {
    return 36;
};
Window_Base.prototype.standardFontSize = function() {
    return 28;
};
Window_Base.prototype.standardPadding = function() {
    return 18;
};
Window_Base.prototype.textPadding = function() {
    return 6;
};
There are also a bunch of numbers.
You can check the plugin you are using if they have a settings that changes line height.
Or you can save the code above as a plugin and change them by yourself.
JavaScript:
Window_Base.prototype.lineHeight = function() {
    return 36;
};
Window_Base.prototype.standardFontSize = function() {
    return 28;
};
Window_Base.prototype.standardPadding = function() {
    return 18;
};
Window_Base.prototype.textPadding = function() {
    return 6;
};
There are also a bunch of numbers.
You can check the plugin you are using if they have a settings that changes line height
Where do I write this, though? Thx!!
You can save it as a plugin. And change those numbers to see if there's any change.
Where do I write this, though? Thx!!
You can save it as a plugin. And change those numbers to see if there's any change.
Thank you so much, there is a lot of improvement,(sorry by the way I took so long to reply since I was on vacation for a while) although I would like to ask one more question, I saw in the code you implemented lineHeight which I changed but without lineWidth at the options words get cut off and it just looked oblonged...is there any way I can also change the Width of the window through coding? Thanks!!
Yeah, but you need to do that for various of windows in game.
For example, the title command window:

Window_TitleCommand.prototype.windowWidth = function() {
return 240;
};

There are also other numbers if you take a look at rpg_windows.js
But I guess you can always try them bit by bit.
Alright, Ill try this and update you later, thanks!!
Yeah, but you need to do that for various of windows in game.
For example, the title command window:

Window_TitleCommand.prototype.windowWidth = function() {
return 240;
};

There are also other numbers if you take a look at rpg_windows.js
But I guess you can always try them bit by bit.
Yayyyy it worked!! Thank you all so much for your help, this thread can be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/menu-window-size.170763/