Font trouble with demo on other PC

So I've been breaking my head over this and maybe someone would like to also?
I have this issue:
On my PC all fonts from all plugins that need to remember my font : ''POPit.ttf'' work fine.
Another PC I tested a demo, used what looked like the default fonts and ignored the settings in each plugin parameters it seems.
Even if the font settings are all set up correctly in the "font" folder and the font file is actually there. (the only one there actually)
At first I saw this bug on my testing on my SteamDeck and figured since it uses Linux OS that it was due to that.
But now discovering this issue on another Windows platform really annoyed me as I had planned to release it for PC first.
Now what could cause fonts to not work, that are specified in each different plugin that work on my pc but not on another?
I can list all plugins that specify fonts here :
- Ocram_Time_System.js
- PKD_MapInventory.js
- PKD_SimpleQuestSystem.js
- SRD_HUDMaker.js
Any idea's are appreciated^^
Bit of an odd one - what version and os are you running on your PC's? There's a known issue about fonts for Win10. Let me know what you're on and I'll see if we can at least rule that out (or in hopefully, as it's a simple fix).
How are you actually telling your game to load and use that font? As far as I know, none of the plugins you list do it (except maybe HUD Maker within the span of its HUDs).

You would need to be using something like Yanfly's Core Engine or editing the gamefont.css
Well both PC's run windows 11.
And those plugin's all have a parameter for font name.
By default your MV project does not have any font names except Italic - you would, again, need to use a plugin that specifically says it changes the font, or something like Yanfly's Load Custom Fonts to provide extra "names" you can reference in other plugins.

(or, again, doing it manually in the CSS file)
1720529062323.png


For example this is inside the SimpleQuestSystem
and yeah of course I changed the CSS file, maybe I didn't said that clearly enough.
@font-face {
font-family: GameFont;
src: url("POPit.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
opacity: 0;
pointer-events: none;
width: 5px;
}

This is inside the css file and the POPit.ttf font file is inside the fonts folder
If you're leaving the name as GameFont in your CSS file, you shouldn't be changing it in the plugins.

You can see a detailed example here:
@font-face {
font-family: GameFont;
src: url("POPit.ttf");
}

No, the name here is GameFont, not POPit.
Interesting...
Could this be the cause?
So if I change every parameter in all plugins to GameFont it will automaticly use the "POPit" specified?
Weird that it does work on my computer though?
Could this be the cause?
As far as I know. You're using a fontname not defined in the gamefont file, so it's going to default to a system font.

Weird that it does work on my computer though?
You probably have that font properly installed on your computer. The fontname can refer to anything defined in the gamefont file or in the actual system fonts.
This was very helpful thank you all 😉
I will give an update when I test it again!
This fixed it on the other pc and also on my steamdeck!
I feel dumb but I'm glad this is resolved!
Thanks guys!

Original thread: https://forums.rpgmakerweb.com/threads/font-trouble-with-demo-on-other-pc.170147/