Hello, everyone. I want to change the font of the Window_Command's items. I have changed in the code:
I saw the code execute, but it didn't work. Can anyone give me any advice?
JavaScript:
Window_Command.prototype.drawItem = function(index) {
const rect = this.itemLineRect(index);
const align = this.itemTextAlign();
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
//Try to pass it to modify the
this.contents.fontFace = "rmmz-mainfont, mplus-2p-bold-sub";
this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};