Text and outlines are seemingly rendered incorrectly

As a preface, I'm not a coder and I do not know Javascript so I've never looked into the code so a significant amount of this may be based on incorrect assumptions based on my limited in-game testing.

There appears to be two ways in which RPG Maker MV renders text, and . The first is used in menus and renders the text absolutely flawlessly keeping the outline behind all text as it should be. (fig.1 in the image). The second renders seems to render each letter individually, and is most commonly used in the default editor for message boxes such as those used to display dialogue (fig.2 in the image). This second method has an unwanted side-effect though, each letter and it's outline is rendered above the previous letter.

rpgmakermv text error.png


Under normal circumstances this isn't noticeable, however when using custom fonts and/or increasing the size of this outline the issue can become very clear, and can make reading text extremely difficult. (Fig.1 and Fig.2 make no use of plugins, only gamefont.css was altered to make use of the typeface "Chewy-Regular")

Some plugins (such as Yanfly's "YEP_OptionsCore", see fig.3) even have this same error with their menus presumably due to text being rendered in a non-standard way to the rest of the default menus in game.

(Screenshots for fig.3 make use of the following Yanfly plugins: YEP_CoreEngine, YEP_MessageCore, YEP_OptionsCore)

Is there a way to resolve this error, and make custom fonts viable in RPG Maker MV?
You either render the outline below the text or above the text, what other option is there?
You either render the outline below the text or above the text, what other option is there?

I haven't altered any code other than changing the default font in the first two images.

This is how text in RPGMaker MV seems to be rendered.
The only way that comes to my mind is using CSS.
Try creating a CSS file in your game folder that holds this data:
Code:
body {
letter-spacing: 15px;
}
and include this line in the head part of the game's index.html:
Code:
<link rel = "stylesheet", href = "file.css">
If that doesn't change anything, you're screwed. If it does, decrease or increase the letter spacing as you see fit.
The only way that comes to my mind is using CSS.
Try creating a CSS file in your game folder that holds this data:
Code:
body {
letter-spacing: 15px;
}
and include this line in the head part of the game's index.html:
Code:
<link rel = "stylesheet", href = "file.css">
If that doesn't change anything, you're screwed. If it does, decrease or increase the letter spacing as you see fit.

This doesn't really fix the issue though, it simply hides it out of view. The error will still exist if the text is spaced out more, and if for whatever reason the font changes during the game it would once again need to be adjusted.
The issue is with spacing due to the fact that the font you are using has bigger width per letter. So if increasing the spacing this way works, it does solve the issue. You shouldn't expect two different things to work exactly the same and in fact MV engine is not built to support every font by default.
The issue is with spacing due to the fact that the font you are using has bigger width per letter. So if increasing the spacing this way works, it does solve the issue. You shouldn't expect two different things to work exactly the same and in fact MV engine is not built to support every font by default.

I'm pretty sure the issue here is that the outline is being rendered above something that it should be rendered behind, and I don't think it's unfair that in an $80 USD piece of software that I pre-ordered that text should be properly rendered without issue, especially when one of the biggest features pushed about this engine on it's release was how customisable it was.

Altering the spacing doesn't fix the issue because it also presents new ones. Increasing the gap between letters, known in typography as tracking, completely alters the feel of the text. Typefaces are designed with a particular spacing because they want to give off a certain feeling.
Ah, I understand now.

It's not just a problem of the outline. MV takes care of each character separately and not words as a whole, therefore the two letters are never on the same layer if I say it like that. And I can't really blame them. Programming an engine that takes care of behavior of two intertwined images is not easy.
As for customizability, MV is 100% customizable. You can make minor changes or even completely ditch the entire engine and import your own. You can use nearly any programming language as long as you design your own exe files. And even without programming knowledge you can do most of the things people that know how to program can. But this problem would require a huge hit to the default structure. Something I can't do.
As a preface, I'm not a coder and I do not know Javascript so I've never looked into the code so a significant amount of this may be based on incorrect assumptions based on my limited in-game testing.

There appears to be two ways in which RPG Maker MV renders text, and . The first is used in menus and renders the text absolutely flawlessly keeping the outline behind all text as it should be. (fig.1 in the image). The second renders seems to render each letter individually, and is most commonly used in the default editor for message boxes such as those used to display dialogue (fig.2 in the image). This second method has an unwanted side-effect though, each letter and it's outline is rendered above the previous letter.

View attachment 88188

Under normal circumstances this isn't noticeable, however when using custom fonts and/or increasing the size of this outline the issue can become very clear, and can make reading text extremely difficult. (Fig.1 and Fig.2 make no use of plugins, only gamefont.css was altered to make use of the typeface "Chewy-Regular")

Some plugins (such as Yanfly's "YEP_OptionsCore", see fig.3) even have this same error with their menus presumably due to text being rendered in a non-standard way to the rest of the default menus in game.

(Screenshots for fig.3 make use of the following Yanfly plugins: YEP_CoreEngine, YEP_MessageCore, YEP_OptionsCore)

Is there a way to resolve this error, and make custom fonts viable in RPG Maker MV?

Hello, i know that is old, but i found a solution. Look my post:

Original thread: https://forums.rpgmakerweb.com/threads/text-and-outlines-are-seemingly-rendered-incorrectly.94406/