Could you then suggest me a font similar to that from screen, but with proper padding?
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)?
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.
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 😛