How to change text 'y position' in "Show Choices"?

Can I change the y position of the text inside the choices option?


Some letters are cropped out in the choice box...


Thanks.
I'm having the exact same problem. I wasn't sure if I should create a new topic or just post here, but I thought if anyone had a solution then it would be nice for RicoRob to see it too!

Letters like 'g' get cropped off in my Choices Menu if they're the bottom choice (even though there's still window space below - see my first example), and I can't for the life of me figure out how to change the text position or increase the height of the text.

Choice Text 1.png


Additionally, the highlighted selection box doesn't fully cover these same types of low-hanging letters. See the 'g' below:

Choice Text 2.png


If anyone has any suggestions, it would be sincerely appreciated! =D
This is basically because all windows have a built-in padding of 18 pixels to ensure the contents never end up squashed against the border in an unattractive way. If you're using a font where letters with "tails" don't fully fit, you'll have to edit the window's windowHeight function to add a few pixels on; this will give the bottom option a bit more room and avoid the contents being "eaten" by padding.
Hi @Trihan,

Thank you very much for the response! Unfortunately, that solution doesn't seem to work. I added '+ 50' to the Choice Window's windowHeight function in the rpg_windows.js file, and this is what happened:

Choice Text 3.png


As you can see, the letters are still cut off. I don't suppose there's a way to add something into the rpg_windows.js file which allows me to adjust the padding of text in this specific window?

Although with that said, I tried changing the overall standard padding (at the top of the rpg_windows.js file) from 18 pixels to 24 pixels and the effect was the same as the picture above - the letters still get cut off, but the window just gets a bit bigger.

EDIT: Aha!! What I actually needed to change was the lineHeight parameter (line 36 on the rpg_windows.js file). I increased that by 4 pixels and voilà - problem solved. Thanks again for the response Trihan - that lead me to discovering this parameter! =D
Ah, it'll be lineHeight that's causing the issue, then.
Sorry, I just edited my previous post to say that haha. But that's exactly right - thank you very much for the help Trihan! Hopefully @RicoRob will see this too =)
@CriticalGames Thank you!
I actually used another way to change that. Not sure if it is a good solution, but it's working so far.

I've added a "-5" value on line 3921 of rpg_windows.js after "rect.y":

line.png


It did the trick, but I don't know if it works with all fonts.
But thank you for your solution nonetheless 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-text-y-position-in-show-choices.74331/