Font scaling and preserving quality

Hi, I'm pretty new to RPG maker MZ, and coming from other engines like Unity and Godot I was pretty baffled when I encountered this issue. (I'm mainly an artist)

When I was tinkering around I landed on a 640x480 as an okay resolution for what I needed. The window was way too small though, so I tweaked the Screen Scale to 2. UI and everything else work fine, but the text was in way lower quality than I expected.
1000350782.png


This is clearly because the engine just grabs the entire window output and scale it up to twice its size, scaling up already rendered font with it. Weird, considering most engines treat UI as a separate element. I didn't expect RPG maker to consider font size as something absolute rather than relative.

To fix this, I thought that I could use a simple script to zoom in 2x on the game (I used SCSwinter's plugin) and simply double the Screen Width and Height (1280 x 960).
This, however, had a different result than what I expected.
UI still gets rendered based on the internal resolution, so it's a lot smaller than before. This is far from optimal.
1000350783.png


I've tinkered around and so far I've tried:

-Messing with the UI Area=Results don't vary, with 2x Screen Res it still outputs way too small, it just moves it
-Disabling the plugin I'm using to have sharp pixels (aka changing the filtering from Bilinear to Nearest Neighbour)=Everything gets blurry, including the text. This is not an acceptable solution as it doesn't up the quality, it merely makes the font murkier. Furthermore, it makes every single pixel art asset muddier.
-Doubling the Font size= text becomes comically large in text boxes and not only it becomes barely readable, this process goes against the original intent, which was to have three-lines textboxs like modern RPGs. And to do so I had to change the font size.
-Leaving the font size to standard and setting manually each text box to have three lines= the text is too small, there's either way too much blank space or too much line spacing
-Looking up in the forums=The only thing that pops up are people discussing how to remove the antialiasing. This only works on pixelated fonts. Using it on my project makes the text unreadable. Yes, I could change the font. No, it wouldn't matter as I wouldn't choose a pixelated font since it doesn't fit what I'm going for. This is not a matter of discussion. I'm looking for a way to have nice looking text, telling me to just throw essentially 99.9% fonts out of the window is not a solution nor a way to help me.
Sorry if I'm too blunt but I don't want to waste anyone's time.
-Looking for plugins=the ones that talk about upping resolution are mostly pay walled and don't mention text in any way. I could try one, but I'd rather ask for help here before paying for something that may not fix my issue.


What I'm essentially looking for is either something that makes the font render at a size relative the window of the executable or some way to double the size of the UI without compromising other menus.
Try using this to help with font issue. Make UI Area as big as screen reso https://forums.rpgmakerweb.com/index.php?threads/opentype-pixel-font-renderer-mv-mz.171027/
Try using this to help with font issue. Make UI Area as big as screen reso https://forums.rpgmakerweb.com/index.php?threads/opentype-pixel-font-renderer-mv-mz.171027/
Sorry I didn't mention it, but UI Area is already as big as the screen res in the 2nd pic.

Here's something more detailed, showing the settings I have on to replicate that screenshot:
1768510155015.png
1768510203527.png


Furthermore, I tried using the plugin you suggested, but unfortunately it seems to target pixel font specifically and spits out funky results when working with fonts with antialiasing.

I've documented my testings:
1768511824491.png

1768511843052.png

1768511857941.png

1768511878416.png


It doesn't seem to really scale up the text, rather it snaps it to a pixel grid. There's also some pretty heavy artifacting around some letters (like w, for example).

PS. I have yet to find a way to double the size of the UI when working in 1280x960 as you can see.
One quick solution may be to just resize the Graphics.boxHeight with a script but seems like It doesn't work with VisuMZ_1_MessageCore enabled.
I don't know how to work around this since I do need that plugin.
Have you tried the other one where you can manually adjust the parameters? There's two types of plugins with opentype font.

Do other fonts have the same issue or just this one with the plugin?
Have you tried the other one where you can manually adjust the parameters? There's two types of plugins with opentype font.

Do other fonts have the same issue or just this one with the plugin?
Yes, I've tried them both, but the issues are the same.
The one in the screenshots is the one with the parameters.
Only pixelated fonts work fine (and I'm not planning on using those), but the text box (Message Window) is still rather small.
I need to make it bigger in Height.

It's weird, VisuMZ_1_MessageCore doesn't have an option for the Message Window Height, but it does have one for its Width and one for the rows.
Adding rows does indeed change its Height, but it creates another issue.
I only want 3 rows of text and while I could just never exceed that number of rows while having more than 3 set, there would be a huge blank gap and the font would be exceedingly small.
Changing font size doesn't fix the blank gap, and it's even buggier, with some letters getting cut off.

EX:
1768582618509.png

(the blue and red areas are the same in both of the testings)

I can't understand why I can't simply set the height, since it's able to modify it when changing rows.

I've looked at the VisuMZ_1_MessageCore's official documentation and find out that there's a "hard-coded text command" which is <Dimensions: width, height>. I've tried using it, but to no avail. I can't seem to understand where I'm supposed to write this command. Writing it in the text box just prints it as part of the text, adding it as a script call does nothing...
I'm confused.
Use plugin command parameters (like the one in events) there is also called lineheight or max lines or something.
Use plugin command parameters (like the one in events) there is also called lineheight or max lines or something.
I've already tried that and documented my results in the previous posts.
I've listed my reasoning as to why lineheight/max lines isn't the way to go.
1768757520126.png

In the end, I've reached a satisfying result with this plugin.
My settings:
-Resolution and Ui Area=1280x960
-Font size 70
-Messed a bit with line height in VisuMZ_1_Messagecore
-Changed WindowHeight to 240 in NRP_MessageWindow

Now onwards on how to make portraits bigger lol.

Original thread: https://forums.rpgmakerweb.com/threads/font-scaling-and-preserving-quality.181983/