So, I've figured out that font glitches seen in the screenshots below are actually due to letters of the main white text not drawn fully--thus displaying the black outline underneath. This makes it seems some junk pixels are on top of the white text. Nonetheless, in removing the white text to leave the black outline below, sometimes the black outline's characters may be not fully drawn as well.
Reference: rpg_core.js
For message boxes, if showfast is set to false or that each letter appears one by one very slowly, the characters would render properly. If showfast is true or that the letters are set to appear rapidly, there's a chance this glitch occurs.
Reference: rpg_windows.js
For me, this issue occurs on Win 11 laptop for deployed games. All is fine on the Steam Deck and a Win 10 PC. I've tried turning off plugins (YEP_MessageCore, YEP_CoreEngine, etc.), but none seems to be the culprit. It appears there's something particular about Win 11 laptops.
With this information, does anyone know how to fix this?
From: https://forums.rpgmakerweb.com/index.php?threads/glitch-messing-up-with-the-fonts.145758/
From: https://forums.rpgmakerweb.com/index.php?threads/font-and-texts-being-weird.166846/
From: https://forums.rpgmakerweb.com/index.php?threads/font-displays-strangely.170137/
Reference: rpg_core.js
JavaScript:
Bitmap.prototype.drawText = function(text, x, y, maxWidth, lineHeight, align) {
// Note: Firefox has a bug with textBaseline: Bug 737852
// So we use 'alphabetic' here.
if (text !== undefined) {
var tx = x;
var ty = y + lineHeight - (lineHeight - this.fontSize * 0.7) / 2;
var context = this._context;
var alpha = context.globalAlpha;
maxWidth = maxWidth || 0xffffffff;
if (align === 'center') {
tx += maxWidth / 2;
}
if (align === 'right') {
tx += maxWidth;
}
context.save();
context.font = this._makeFontNameText();
context.textAlign = align;
context.textBaseline = 'alphabetic';
context.globalAlpha = 1;
this._drawTextOutline(text, tx, ty, maxWidth);
context.globalAlpha = alpha;
this._drawTextBody(text, tx, ty, maxWidth);
context.restore();
this._setDirty();
}
};
For message boxes, if showfast is set to false or that each letter appears one by one very slowly, the characters would render properly. If showfast is true or that the letters are set to appear rapidly, there's a chance this glitch occurs.
Reference: rpg_windows.js
JavaScript:
Window_Message.prototype.updateMessage = function() {
if (this._textState) {
while (!this.isEndOfText(this._textState)) {
if (this.needsNewPage(this._textState)) {
this.newPage(this._textState);
}
this.updateShowFast();
this.processCharacter(this._textState);
if (!this._showFast && !this._lineShowFast) {
break;
}
if (this.pause || this._waitCount > 0) {
break;
}
}
if (this.isEndOfText(this._textState)) {
this.onEndOfText();
}
return true;
} else {
return false;
}
};
For me, this issue occurs on Win 11 laptop for deployed games. All is fine on the Steam Deck and a Win 10 PC. I've tried turning off plugins (YEP_MessageCore, YEP_CoreEngine, etc.), but none seems to be the culprit. It appears there's something particular about Win 11 laptops.
With this information, does anyone know how to fix this?
From: https://forums.rpgmakerweb.com/index.php?threads/glitch-messing-up-with-the-fonts.145758/
From: https://forums.rpgmakerweb.com/index.php?threads/font-and-texts-being-weird.166846/