Change how "terms" text space is handled?

Hi all, I wasn't sure where to post this but since the answer will probably contain JS I decided to post it here.

So when you change the terms to a longer word (for example HP -> Healthstones or something) the text becomes really clamped together to one side of the screen, although there is much remaining space on the gauge for it to be displayed properly.

I understand that this is probably because in the battle screen you don't have enough space, but I don't care about that, I just want the word to be displayed correctly and not resized.

I have some (seemingly more complicated) alternative ways to go about it in my mind, but it seems to me it's just negating a simple line to the code that handles the menu window text scaling, although I haven't had the time to look into it.

Is there any way to do it? I only want it to affect the HP,MP and TP bars - even if that means they will be affected wherever they appear.
When the drawText function is called, the parameters it is given are the following:
drawText(text, x, y, width, align)
Find in the main menu window (in rpg_windows.js) where this is called for HP, MP, and TP and change the width to something larger. Doing so specifically for the menu window won't even affect the battle window by itself, either.
Ok, found it. Thanks ramza. In case anyone wants to know the exact thing to change it's this:

rpg_windows.js -> search for function "Window_Base.prototype.drawActorHp"

Here look for "this.drawText (TextManager.hpA, x, y, 44);"

This "44" is the width of the term you put. So, for example, I changed this to a random big number "500" and it displays the text non-scaled.

You can similarly do it in MP and TP too.

Just be warned, it's not the best thing to change stuff in the window_base.prototype. You never know what you might have messed up in other things 😛

Although, this has a direct number put into it, so i'm guessing it's fine.

EDIT: For TP, If you're using Yanfly's Core Engine plugin, you have to change it in that one instead, since it overwrites it.

Original thread: https://forums.rpgmakerweb.com/threads/change-how-terms-text-space-is-handled.115603/