No I mean do you play the game fullscreen, or change the size of the window?
It doesn't looks like your screenshots are from a 1104x624 window.
What battle UI are you using? Shifting the PSY text up or down by half a pixel should fix the problem.
As for the fullscreen question, it is impossible in theory. How do you manage, for example, 2.5 pixel? It can only be 3 or 2 if you want it to display clearly. Also changing the screen size is out of the control of the plugin, it is done after the text is displayed.
For text position, it can be rounded using a small plugin, for example:
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;
}
tx = Math.round(tx);
ty = Math.round(ty);
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();
}
};
I don't know if it can fix your previous PSY text problem.
Anyway, UI adjust is very hard to do, you need to tinker things pixel by pixel.
And there're the original \{ and \} control, it increase or decrease font size by 12, so maybe you'll also need to change that to have best result.
Window_Base.prototype.makeFontBigger = function() {
if (this.contents.fontSize <= 96) {
this.contents.fontSize += 12;
}
};
Window_Base.prototype.makeFontSmaller = function() {
if (this.contents.fontSize >= 24) {
this.contents.fontSize -= 12;
}
};
I see. Besides that, it is best to have your actual font size multiplies of 16.
Because the renderer will try to center the text according to line height, for example, if the size is 19, it will be shift upward 1.5 pixels.
When the plugin tries to snap to a pixel, it is possible two values are 10.49999 and 9.500001, both values will be rounded to 10. I haven't tried to improve that yet, so you'll need to make sure the position and size of the text is accurate.:hswt:
looks really good. keep it up.
I love it, but does it support for 640x320?
Edit: it works perfect fine, but when I am using Yep CoreEngine, the fonts decrease the size, it's not good, and I want to use it for real. Is there way to fix it?
Maybe it is because the font? For example 22 will be rounded down to 16 but 24 will be 32.
Please post a screen shot of the plugin parameters and the front you are using.