I'm using a font which has wider characters and they overlap on the name input screen, specifically M and W. Is there some way to make the spacing look the same as the text in game? It's very inconsistent and it just looks wrong on the Name Input screen. I've also been trying to alter it from rpg_windows.js but no success so far. Any help is appreciated, thanks!
MV Help fixing Text Padding in the Name Input Screen.
Javascript/Plugin SupportYou will want to take a look at Window_NameEdit. This is the window that is responsible for displaying the inputted name.
As you have already observed, it draws the name character-by-character in a different way than text is normally drawn. You can see this in its refresh() function, where it runs a for loop over the inputted letters from the "_name" variable and calls its own special "drawChar()" function on each letter, one at a time, instead of using "drawText()" which is how text is usually drawn in other windows.
You'll want to modify that function and probably replace the letter-by-letter "drawChar()" thing it does with something that uses "drawText()" instead.
I imagine the reason it is done this way is because of the evenly-spaced underlines that it also draws beneath each letter. You can't do evenly spaced underlines when the letters are drawn normally, because then they aren't evenly spaced apart.
As you have already observed, it draws the name character-by-character in a different way than text is normally drawn. You can see this in its refresh() function, where it runs a for loop over the inputted letters from the "_name" variable and calls its own special "drawChar()" function on each letter, one at a time, instead of using "drawText()" which is how text is usually drawn in other windows.
You'll want to modify that function and probably replace the letter-by-letter "drawChar()" thing it does with something that uses "drawText()" instead.
I imagine the reason it is done this way is because of the evenly-spaced underlines that it also draws beneath each letter. You can't do evenly spaced underlines when the letters are drawn normally, because then they aren't evenly spaced apart.
Thanks for the reply! A friend had a plugin they made that fixed this problem so everything is fixed now! Td.read can be closed.
Original thread: https://forums.rpgmakerweb.com/threads/help-fixing-text-padding-in-the-name-input-screen.157226/