upon looking, this should work or I'm out of options:
JavaScript:
Window_NameEdit.prototype.drawChar = function(index) {
const rect = this.itemRect(index);
this.resetTextColor();
this.drawText(this._name[index] || "", rect.x, rect.y, rect.width, "center");
};
as drawtext seems to have another option to it, it does have an alignment,
but I dont get "maxWidth" which MV doesn't have, so this should work, else
maybe someone have a solution for it.
It is a management that It's a little messy. You might need +4.5 or 4.3 instead to get the center. Fixing the edges based on your font is difficult with your thick Or the proportion size is not normal.
OK, great news, I managed to get it centred combining both of your solutions
🙂
What I did was, instead of copy the entire code for centering over of the previous version with the '+5', I just replaced the last part (the last row), and it worked this time.
So, the final solution for my problem was, to combine the gap fix, and the centered fix, so the final version of the code, that really brings it home, is this, in case someone else need it:
Code:
Window_NameEdit.prototype.charWidth = function() {
const text = $gameSystem.isJapanese() ? "\uff21" : "A ";
return this.textWidth(text);
};
Window_NameEdit.prototype.drawChar = function(index) {
const rect = this.itemRect(index);
this.resetTextColor();
this.drawText(this._name[index] || "", rect.x, rect.y, rect.width, "center");
};
If you'd like any credit, let me know.