Some help with text spacing issues in menus (Visustella)

Hello!

I made the decision to change my resolution to 640x360 and so I've spent the last few days trying to get the menus to look okay again (I'm not in any way a javascripter, but I'm poking around in what I can and experimenting/ learning as I go). Everything is going pretty okay but

I cannot for the life of me figure out how to change this text spacing? There's a big gap between equipment slots and the equipment itself.


Spoiler: Screengrab 1
gap.png

This is the updated layout of the VS ItemsEquipsCore, though I tried turning that off and using the default Equip Scene and the gap is present there, also - and I can only seem to fiddle with the window placements, not the text placements inside.

Can anyone point to where I could edit this?


There's a different issue I'm having in the shop scene (also VS ItemsEquips layout, specifically Double). I'm using a bitmap font for pixel perfection, and the font size in absolutely every instance I can find it has been set to 16, I even tried a custom plugin to force the font to be 16, and yet this is the one place the font is getting squashed.
Spoiler: Screengrab 2
1772962935516.png
I suspected it's too wide for the box and is therefore getting squashed? But after fiddling in the Shop Scene layout options in VS ItemsEquips (specifically the Double layout here) I don't seem to be able to directly edit that horizontal gap between the parameter and its value. So I'm suspecting it's a similar solution to the equip scene problem above?


A huge thank you to anyone who can possibly advise me here?
For the first question, in the base code that comes from:

Window_EquipSlot.prototype.drawItem = function(index) {
if (this._actor) {
const slotName = this.actorSlotName(this._actor, index);
const item = this.itemAt(index);
const slotNameWidth = this.slotNameWidth();
const rect = this.itemLineRect(index);
const itemWidth = rect.width - slotNameWidth;
this.changeTextColor(ColorManager.systemColor());
this.changePaintOpacity(this.isEnabled(index));
this.drawText(slotName, rect.x, rect.y, slotNameWidth, rect.height);
this.drawItemName(item, rect.x + slotNameWidth, rect.y, itemWidth);
this.changePaintOpacity(true);
}
};

Window_EquipSlot.prototype.slotNameWidth = function() {
return 138;
};

So you want to give smaller value for that return value of slotNameWidth (haven't tested if that works for VisuStella).

For the second question, just to make sure, you changed the font size in the plugin settings in 'Shop Status Window' -> Parameter font size ?
If that doesn't help, you can try put line that changes font size everywhere in the draw method:
Window_ShopStatus.prototype.drawEquipDataDouble
Get it from console and put font change after all the lines in the obfuscated code to find correct spot LOL.
Or maybe someone can tell you if there was something in the base code that changed the font size in case the window was too small or whatever. Can't remember myself.
Well, problem 1 solved! You're my savour once again! Thank you! 🙂

As for problem 2, I did set the parameter font size, and I actually did try pasting the font size script I have everywhere within that section already! xD haha
it's not working though... this is what I'm using:
Code:
Window_Base.prototype.standardFontSize = function() {
    return 16;
};

1772969093323.png


and I'm placing it like so. It doesn't crash but I'm not sure if I've done it right either.



and on second thoughts I don't think the problem is the gap between the parameter name and its value, because the text is still too small on the Classic and Compare displays too, and those spacings are different. They're just filling the tables appropriately. So something else is forcing the font smaller?
EDIT: and actually on those views the list actually overflows vertically and the bottom entries are cut off, so it's definitely not being forced to fit the table.

I truly think I've found every instance of font size in the visustella core and equips plugins and changed them all, and my system font size is 16 too. I'm a little flabbergasted! D:
Cool.

For number 2, that thing you put in there is a function, so you don't use it like that (or maybe you can, I don't know, but it's usually not done like that). And also, that's an MV function.

For MZ, try making a plugin that has:
Game_System.prototype.mainFontSize = function() {
// return $dataSystem.advanced.fontSize;
return 16;
};

or

Window_Base.prototype.resetFontSettings = function() {
this.contents.fontFace = $gameSystem.mainFontFace();
// this.contents.fontSize = $gameSystem.mainFontSize();
this.contents.fontSize = 16;
this.resetTextColor();
};

If you want to change it with scripts in something, it'd be like (inside window methods):
this.contents.fontSize = 16;

And what I meant earlier is to fetch the obfuscated VS draw methods related to that from the console and put that this.contents.fontSize = 16; font changing line in there (not in the plugin settings, though you can try that too.). Either this one Window_ShopStatus.prototype.drawEquipDataDouble or some of the sub methods it calls.

But you can start by trying if using the correct MZ methods work.
Thank you so much for the help, really! Even if these don't work, I'm learning lots!

Unfortunately I'm having no dice with any of those! Tried making two separate plugins with your code, tried putting this.contents.fontSize = 16; in the lines in the plugin settings as I was doing before... and as for editing the VS script directly... lmfao I heard their code was obfuscated but hadn't actually seen it for myself and that's a maze in there!

Perhaps I didn't do what you intended; I directly looked in the VisuMZ_1_ItemsEquipsCore.js in notepad and added this.contents.fontSize = 16; on a whim after the first mention of EquipDataDoubleand tested, but the game crashed on boot with a syntax error, naturally.

I Ctrl+F searched for the full line you posted: Window_ShopStatus.prototype.drawEquipDataDouble but that line didn't exist in that file in its entirety. I did similar searches in rmmz_windows.js (I'm not sure but I assume the plugins edit this file so looked for it in there) but didn't find anything.


I COULD just try a different shop scene plugin but I've just discovered one more (hopefully last) instance of a forced smaller font in a VS plugin that is actually crucial that I fix:

Screenshot 2026-03-08 123513.png


Players are gonna be mad if they can't see the next EXP threshold! >.<

This is the VS Victory Aftermath plugin.

I can't find any plugin settings that tinker with the font sizes at all here... but perhaps hopefully finding the solution to one brings us to the solution of the other...?
EDIT: just remembered this plugin's behind a paywall so fear not if you cannot advise with this if you don't have it.



EDITEDIT: I'm also gonna try to see if I can get a smaller perfectly scalable pixellated font WITHOUT using bitmap fonts, because that's the core issue here, it can't handle being resized down it seems. I'll report back.
I meant open console with F8 and get the methods from there, not from the plugin file. Write the methods name in the console, press enter, then click on the function and it takes you to sources tab, select pretty print and then you see the function. Copy paste that to notepad, save as .js file and add as plugin. Try changing the font size in there (in several spots). That equipDataDouble or the draw methods it calls.

But anyway, I checked it quickly and there's methods called:
itemDataFontSize
smallParamFontSize
fontSizeRatio
maxFontSizeInLine

You can check those in console and if you see them just returning something simple, try make them return that 16 (well probably not that ratio one, but anyway). So make a plugin for the methods where you try returning 16.
Well that was a trip and I feel like a new trainee Matrix operator. Thanks for teaching me that!

Unfortunately, I couldn't find any simple return functions for itemDataFontSize or smallParamFontSize etc. they had 1 or 2 entries each and had no definitions that I could see 🙁

I tried what you suggested with spamming the font resize code in a plugin (tried various varieties), and it didn't crash but didn't fix it either (actually it just made some entries disappear)

like so
1772979820860.png


My head hurts Dx
Ok, I quickly checked them and they all do return something. But seems like whatever they do, your value of 16 should work there.
ratio: 1
itemdatafontsize: plugin settings value
smallparamratio: plugin settings value
maxfontsizeinline: 26

So yeah, don't know what's changing it (it can also happen in the methods that Window_ShopStatus.prototype.drawEquipDataDouble you modified itself calls)
Might also be something is causing it that I'm not aware of and you should look somewhere else.

So yeah, can't help you with that. Maybe someone else can, or try ask AI to tell you what the obfuscated code does LOL
That's okay, I'll figure something out! 🙂
Thanks for all your efforts!
@rpgLord69

We got there

1773006974143.png


There may have been a more direct solution but as of now, it appears that...

Bitmap Fonts + VisuStella = Potentially a Bad Time

OpenTypePixelFont plugin + VisuStella = a pretty decent time

Original thread: https://forums.rpgmakerweb.com/threads/some-help-with-text-spacing-issues-in-menus-visustella.182779/