Font.deafult_name problem

So I was reading up the help file for Fonts, and saw that you can feed it an array for Font.default_name

so I tried writing this line out:

Font.default_name = ["VL Gothic","Arial","Times New Roman"]Which I think should have made it such that if the first font is not there, it will check for the next and so on...but when I tested it on my office comp, without VL Gothic, it returned an error instead about not finding VL Gothic.

So I'd just like to ask if I need to do something more than just the array?

PS: I know Yanfly's core uses that too, but I cannot check that right now since I can't seem to access his dropbox links from here...
Try a font that is not VL Gothic. That font is kind of special, and even a game that does not use it will crash without it/the rtp.
okay... I'll see


PS: oh crap, I can't right now... I only have Lite here in the office. Thanks anyways I'll try it later. 🙂
The error message would be helpful 😉
that's almost the exact error, Unable to Find VL Gothic Font...
That IS what it should do, and I'm pretty sure it's done it for me before. Do you HAVE VL Gothic on that computer? Do you have both of the others?


I'd be checking to see if NONE of them are available, and that's why the error is coming up. Or to see if there are other scripts that change the default font or only use VL Gothic. If the error doesn't actually point to that very line, it could be another spot that's triggering it.
I have both Arial and TNR, just VL is missing on this computer... I only use my own scripts on that so I'm sure there's no other scripts lurking that change the default font aside from 1 event that uses Papyrus on a specific font object, not the default... the game isn't linked to the RTP too...


and the error doesn't point to any script btw... the error happens upon loading... or is it that Game.exe looks for VL Gothic no matter what?


EDIT: Found Racheal's thread: http://forums.rpgmakerweb.com/index.php?/topic/19667-standalone-without-vl-gothic-is-it-possible/?hl=gothic


seems like you need VL Gothic no matter what...
RGSS3 requires having "VL Gothic" installed (fonts in the Fonts folder get temporarily installed), even if the game isn't using it. Copy a font with the name "VL Gothic" (can be even a fake one) to Fonts if your game isn't using the default RTP.

And I think this feature doesn't make much sense anymore. It did in RGSS1 because back then there was no builtin font installation. Well, at least a bit because you had to make sure there was no cut off or squeezed text with those alternative fonts.

Original thread: https://forums.rpgmakerweb.com/threads/font-deafult_name-problem.23468/