MV Remove text squash fully from RPG Maker MV (especially the item menu)

First off, I've tried googling this in multiple ways to no avail, that's why I'm asking here.
My only actual issue is regarding one item in the item menu, but it's an important one you get early on so it's on high priority for me.
I am also using a pixelated font, so squash looks particularly awful with it. Removing squash entirely would be perfectly fine with me, as it'd force me to make sure all of the text fits the way it's supposed to and looks nice. Only removing it from the item menu would be a good fix too though.

Here is the item I'm referring to. As I'll show you in the second image,
it shouldn't need to be squashed at all in order to fit on-screen.
ice_screenshot_20231116-141751.png


This is just a little mockup I made in gimp, but this is what it should look like.
It has a longer name than the rest, yes, but it's clearly readable and doesn't overlap
with any important information, or anything at all. It fills the empty space provided.
ice_screenshot_20231116-141751-b.png


If you have any ideas or suggestions on what I can do about this, plugin, javascript, or otherwise, please lemme know. Thankyou for your time ^.^

Also, worth noting that I'm hoping to severely rework the menus and make them all custom at some point, though it's only semi-related to this post, it might be useful information. (like in-case a solution would make that more difficult, or if there's a plugin that would give me what I want, but is also a complete in-depth menu customizer or something)
if you use a plugin no plugins when it happens, than it calculates the width
and if needed, squash it.

this is mostly because of the max width of the window and the number behind
it to 4 digits is not mistaken, so anything bigger than that will be squashed.

you can increase it, but if you use also longer names, it will be behind the number,
or overlap it, but there are ways to control it if you want too.

you can try TSR_TextColorAddon which has some bitmap text, even though,
it also calculates the width, but some plugins does it to keep it readable.

if you use plugins targeting this, you should link them.
Here's the relevant code:
Code:
Window_ItemList.prototype.drawItem = function(index) {
    var item = this._data[index];
    if (item) {
        var numberWidth = this.numberWidth();
        var rect = this.itemRect(index);
        rect.width -= this.textPadding();
        this.changePaintOpacity(this.isEnabled(item));
        this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);
        this.drawItemNumber(item, rect.x, rect.y, rect.width);
        this.changePaintOpacity(1);
    }
};

Window_ItemList.prototype.numberWidth = function() {
    return this.textWidth('000');
};

The pertinent bits are
Code:
        var numberWidth = this.numberWidth();
and
Code:
    return this.textWidth('000');

As ShadowDragon says, the width of everything and the text compression is based on allowing three digits for the item quantity at the end.

You could copy this:
Code:
Window_ItemList.prototype.numberWidth = function() {
    return this.textWidth('00');
};

into a text editor, save as a *.js file and include as a plugin, to make it allow for only two digits of quantity.

Or if you don't care about whether the item name on some rows overlaps with the item quantity on other rows, you can do it more dynamically with this:
Code:
Window_ItemList.prototype.drawItem = function(index) {
    var item = this._data[index];
    if (item) {
        var numberWidth = this.textWidth($gameParty.numItems(item).toString());
        var rect = this.itemRect(index);
        rect.width -= this.textPadding();
        this.changePaintOpacity(this.isEnabled(item));
        this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);
        this.drawItemNumber(item, rect.x, rect.y, rect.width);
        this.changePaintOpacity(1);
    }
};

And that won't reserve a set amount of space, it will look at the actual item quantity.
@ATT_Turan @ShadowDragon thankyou both so much ^.^
I used this script code, and it does exactly what I hoped it would!
My items have a cap of 99 for some reason (I found it's because of YEP Core engine, also, I can adjust the quantity text size, yay- although it looks weird) and I don't expect the player to have anywhere near that many on them at a time anyways, so it's no issue.
Window_ItemList.prototype.drawItem = function(index) {
var item = this._data[index];
if (item) {
var numberWidth = this.textWidth($gameParty.numItems(item).toString());
var rect = this.itemRect(index);
rect.width -= this.textPadding();
this.changePaintOpacity(this.isEnabled(item));
this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);
this.drawItemNumber(item, rect.x, rect.y, rect.width);
this.changePaintOpacity(1);
}
};

It does fit a little snuggly though, as you can see below. @ShadowDragon, I looked at the plugin you linked to, which looks really cool, but I only see it talking about text color. Is there another resource I should look for to find out how to use it to fine-tune adjust text? Or can it be found somewhere in the plugins help section?
Either way I'll definitely look into using this since gradient text looks really cool, so I really appreciate it ^.^

Also, I'm not currently using any plugins that affect the item menu, but I likely will in the future. (Item core CAN, but I have that part of it turned off in the plugin settings)

Also, I imagine that if I gave the item a text color, it would stand out more from the item count text, making the snugness less of an issue.
ice_screenshot_20231116-175524.png

ice_screenshot_20231116-175554.png
Is there another resource I should look for to find out how to use it to fine-tune adjust text?
Why do you need another resource? Use the code you already have and change the value.

As I said before, the pertinent part was
Code:
        var numberWidth = this.numberWidth();
which you changed to
Code:
var numberWidth = this.textWidth($gameParty.numItems(item).toString());

If you want to allot more space there, make the number larger.
Code:
var numberWidth = this.textWidth($gameParty.numItems(item).toString()) + 4;
or something.
TSR_TextColorAddon does more than just color the text 😉
it also have the ability to "scale" icons height/width you set,
so if text is bigger, it scale with it, same for smaller, use own
new set of iconset (starting from 500) which you can change.

it change how "bitmap" font works from the default, so you can use
icons and color everywhere, in the editor on each database if desire.

but ATT_Turan solution which I didn't think off for more dynamic is a nice way.
another option to make a bit more space as provided is to make the window
of the item bigger, there are ways to not let the font squish, but its how you
want the scene look like, so options are are there ^^

Original thread: https://forums.rpgmakerweb.com/threads/remove-text-squash-fully-from-rpg-maker-mv-especially-the-item-menu.162995/