Any "8-bit" fonts that work well with VisuMZ Pixel Image Rendering?

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
Hi again!

I've been changing settings in the VisuMZ Core Engine plugin and I started using the pixel image rendering option. I'm not sure if it just removes antialiasing or if it's something else, but my game is a lot clearer now.

The only problem is that my font is now jagged and offset because I guess partial "pixels" from the outline got snapped onto the font area. Here's what I mean (the one on the right is after I turned the setting on):
1602349924195.png1602349806359.png
The engine blurs the text by default which is also really annoying, so it wasn't any better before. But if I can get the font to be one solid color then that would be perfect. The darker parts of the letters aren't shadows from the font itself--the raw font is completely solid.

I guess I'm looking for a font that would either work well with this setting, or a way to disable the outline completely. The latter seems more appealing to me. But I also don't really like the font I have so if anyone has any good suggestions I'll be glad to take them haha

Thank you guys! I appreciate all the help so far, this is a friendly community! :kaohi:
 

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
**Update**

Okay so I found these lines in rmmz_core.js that can be changed to eliminate the text border.
Code:
this.outlineColor = "rgba(0, 0, 0, 0.5)";
this.outlineWidth = 3;

So I fixed that nuance, but the font is still looks the same. I did a little testing and I found that the plugin is actually averaging the white in the font with the alpha layer of the surrounding pixels.
1602378432413.png

So I guess my only hope is to search for a font or font size that minimizes this effect. Thanks to anyone who might have tried to help!
 

Dororo

Gespenst MKII pilot
Regular
Joined
May 24, 2020
Messages
261
Reaction score
944
First Language
Italian
Primarily Uses
RMMV
Don't waste your time.
Read this till the end.
 

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
Don't waste your time.
Read this till the end.
I will, thank you!
 

HoofedEar

Regular
Regular
Joined
Aug 27, 2020
Messages
38
Reaction score
8
First Language
English
Primarily Uses
RM2k3
Wow this is amazing, thanks again!!
Are you able to explain how you got to this point?
A lot of the information in the linked thread is confusing/not very clear. People are still asking in that thread how to do it..
Please share your great wisdom! :kaodes:
Also, this thread is the first result on Google when looking up this issue, interestingly enough
 

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
@HoofedEar
Sure thing! All I did was add in this script as a plugin to my game:
Code:
Bitmap.prototype._drawTextOutline = function() { // only use to get rid of text stroke
   return;
};
Bitmap.prototype._drawTextBody = function(text, tx, ty, maxWidth) {
    var context = this._context;
    context.imageSmoothingEnabled = false;
    context.fillStyle = this.textColor;
    for(var i = 0; i < 12; i++) // repeat the layer 12 times like in GIMP
       context.fillText(text, tx, ty, maxWidth);
};
If you want more info on it, they discuss it (and maybe some other methods) in this thread!
 

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
I want to warn you though, it doesn't work well for smaller font sizes (like the item stats in the Item screen). But I bet there's a workaround for that too haha. I just haven't looked that far into it yet :c
 

HoofedEar

Regular
Regular
Joined
Aug 27, 2020
Messages
38
Reaction score
8
First Language
English
Primarily Uses
RM2k3
@HoofedEar
Sure thing! All I did was add in this script as a plugin to my game:
Code:
Bitmap.prototype._drawTextOutline = function() { // only use to get rid of text stroke
   return;
};
Bitmap.prototype._drawTextBody = function(text, tx, ty, maxWidth) {
    var context = this._context;
    context.imageSmoothingEnabled = false;
    context.fillStyle = this.textColor;
    for(var i = 0; i < 12; i++) // repeat the layer 12 times like in GIMP
       context.fillText(text, tx, ty, maxWidth);
};
If you want more info on it, they discuss it (and maybe some other methods) in this thread!
Interesting, this is essentially just a smoothing technique instead of trying to find a way to disable Anti-Aliasing... neat!
 

CopperGenie

Villager
Member
Joined
Oct 8, 2020
Messages
23
Reaction score
30
First Language
English
Primarily Uses
RMMZ
Interesting, this is essentially just a smoothing technique instead of trying to find a way to disable Anti-Aliasing... neat!
Yeah I thought it was a really unique fix! It's not perfect but I guess you could always do more repetitions if you're not happy haha
 

Latest Threads

Latest Posts

Latest Profile Posts

Is an extension for the jam time limit from 20 min to 30 min possible? :ysad::ysad::ysad: My entry will have a few battles, it seems >.<
Background and composition study
GAbBmfDaIAAEzVM
Ho, ho, ho and mwah, ha, ha. It appears that I will be getting a leg up on the inclusion of Krampus in the 2023 Game Jam. We arrived in Orlando, FL yesterday and my wife found a Krampus Festival for us to attend tonight! Maybe I will be going home with a Krampus!
I was planning on getting new character management feature into Character Generator, but my recent illness has delayed this somewhat. I will try and get it done today (which would be a miracle) but if not, I will have to complete the whole lot by Tuesday. This should hopefully be fine and all other feature updates should not have their target dates affected.

Forum statistics

Threads
136,706
Messages
1,268,963
Members
180,429
Latest member
starlord6969
Top