Is there a way to change the default font to ALL CAPS? Something like
CSS text-transform: uppercase;
CSS text-transform: uppercase;
var _Bitmap_prototype_drawText = Bitmap.prototype.drawText;
Bitmap.prototype.drawText = function (text, x, y, maxWidth, lineHeight, align) {
if(text !== undefined) _Bitmap_prototype_drawText.call(this, String(text).toUpperCase(), x, y, maxWidth, lineHeight, align);
}
One thing to note is that this will only affect text without control codes since you haven't aliased drawTextEx.
It's aliasing the
Bitmap function directly, not just Window_Base- at that level the distinction is no longer there (Window_Base.drawTextEx should result in Bitmap.drawText being called in the end). Ah, my mistake. I thought it was Window_Base.prototype.drawText you were changing. Carry on!
Original thread: https://forums.rpgmakerweb.com/threads/change-font-to-all-caps.158795/