MZ Question about fonts in a javascript portion of a plugin

Hello all,

I'm looking through Visustella's Date and Time plugin settings and was going through the HUD settings and noticed they have a section labeled JS: Draw Text that displays the text of the season, year, month, etc. in the HUD. My question is about this section of that code here:


// Change Font Settings
bitmap.fontFace = 'Times New Roman';
bitmap.fontSize = 32;
bitmap.outlineWidth = 5;
bitmap.outlineColor = 'rgba(0, 0, 0, 0.8)';

I understand what all that means, but when it comes to the fontFace, what are the limitations on what I can change that to? I would like to change it to something less generic than Times New Roman but I'm not sure what my options are. Are there already pre-installed fonts within RMMZ that I have to choose from? Am I relying on the player who downloads the game having the font installed on their computer for it to display correctly? I know there's a fonts folder in the game files, but I don't have Times New Roman in that folder yet it displays it correctly.
Any system font should work there, so depending on how you intend to distribute your game you'd have to be careful about fonts that are on both Windows and Mac.

Aside from that, you can use fonts in your font folder that have been loaded by the engine - you should be able to look up plugins that assist in that process.
Perfect, thank you! So the safest bet would be to use a system font that's available by default on Windows and Mac?
I don't think I'm onboard with that logic - the safest best would be to use a plugin to load additional fonts and supply the specific font you're using in the folder with the game.

That's what actual, professional games do.

Of course, you have to make sure it's something you have the rights to distribute.

Looking for a shared system font that you consider "less generic" would be the next level down, for me.
Noted. That makes sense. Any plugin you recommend? I found this one that I assume does what what I'd need it to do.

Original thread: https://forums.rpgmakerweb.com/threads/question-about-fonts-in-a-javascript-portion-of-a-plugin.166967/