Padding text in vertical line problem.

I'm struggling with small (big) issue... But let's go to very begining (litterally)
I wasn't sure is this right board to ask it or plugin support, so I'm very sorry for my mistake. I noticed in game menu
text is not perfectly padded in vertical line and it looks like sh**... crap

How can I align vertical menu elements (as well as Choices from "Show Choices" event) and any other element (game menu, battle menu etc) so they're perfectly centered in vertical alignment?
You want to center the text, or make the letters start on the same x position on the left? If it's #1, then the code is:

Code:
this.drawText(text, x, y, width, "center");

If it's #2, then I'm afraid it's probably an issue with your font, not the game itself.
Could you then suggest me a font similar to that from screen, but with proper padding?
@MushroomCake28 My understanding is that he wants to fix the VERTICAL alignment - that is, have the padding between the text and the top and bottom edges of the cursor box be equal.
@Wavelength YES! Exacly.
Ohh I'm stupid lol, I thought it was the picture in your signature lol.

Your font actually looks fine. I have 2 questions before I can help:
1) Are you using a plugin for that window? If so, which one?
2) When you move the cursor, is it off by the same amount for every command? Or does the displacement change every time (meaning that the distance between items is not line height and that it's only the y position that's off)?
@MushroomCake28
#1
Generally my project is stuffed with Yanfly's plugins (altering game mechanics), but for title menu I use SRD Title command customizer
#2 I say this: Text in main menu is a little bit up. I want a perfect vertical align like here
Yeah, I understand, but what I want to know is what is the faulty variable here: the y position (starting y position) or the line height (distance between each command). If you move the cursor and the cursor stays off by the same proportion, that means that the line height has the correct value and the fault lies with the y variable. If when you move the cursor it still remains off but by different proportions, that means that the error lies with the line height, and/or the y variable.

EDIT: You can take a screenshot of the cursor while it's on the second command? I'll be able to tell what the problem is with that and the first picture.
Here it is and other stuff

and other menu elements
Ok, so we've confirmed that the line height is the correct value, meaning that the items are just shifted, meaning the y value isn't correct. I'll take a quick look at the plugin.

EDIT: So here's the part of the code that you'll have to modify to fix your problem. I can't figure the exact pixels you have to move, so you'll have to play around. Change the "+ 2" at the correctY line to shift your items vertically. You can either copy/paste this code at the end of SRD's plugin, or insert it as a new plugin after the SRD plugin.

Code:
Window_TitleCommand.prototype.drawItem = function(index) {
    var rect = this.itemRectForText(index);
    //------------------------------------------
    // MODIFY HERE
    var correctY = rect.y + 2;
    //------------------------------------------
    var align = this.itemTextAlign();
    this.resetTextColor();
    this.changePaintOpacity(this.isCommandEnabled(index));
    if(_.textCodes) {
        this.drawTextEx(this.commandName(index), rect.x, correctY);
    } else {
        this.drawText(this.commandName(index), rect.x, correctY, rect.width, align);
    }
};
@MushroomCake28 Thank you very much! I officialy stand up and salute you! 🙂
Glad I could help.

Also, just for your information, I think this problem might have to do with the font. Although the ling height is fine, it seems that it's a bit smaller than the original font. The original "rect.y" should have calculated the correct center position for the text, but since your font is a bit smaller than the default font it placed the text where the original font would have started the text to center it.

If you're using this font for the rest of the game, maybe you should check around to see if other windows have the same issue. If the other windows do have the same issue, instead of moving the text in all windows it would be quicker to slightly increase the font. If it was just an issue with this particular window, then forget what I just said lol.
I'll keep it in mind and I check it. Anyway... I was thinking on replacing it with something more fitting for rpg style, but I can't decide yet 😛

Original thread: https://forums.rpgmakerweb.com/threads/padding-text-in-vertical-line-problem.116017/