how do i change the RMXP default font

Ive been trying to figure out how to change the default font in RMXP but everything I find when I look it up doesn’t work ( How I can change the font in RMXP? this is a specific one and the line of code in main mentioned in here does not seem to exist) so i was just wondering if anyone know how to change the font.
thanks in advance

Ah yeah the old $fontface variable is an old workaround that I’m still not 100% sure where it came from, should dust off my copy of rmxp 1.00 and see if that was there.

What you want is to use Font.default_name and Font.default_size

Add these two lines somewhere in your Main script.

Font.default_name = "Arial"
Font.default_size = 20

A couple caveats however… RMXP doesn’t do what VXAce does where you can have a Fonts folder that the game will have available at runtime. Instead it will depend 100% on the fonts your system has installed.

The other thing to mention, the name you put there is basically the name that appears in stuff like Photoshop, Word, etc. not the filename. You can check what the actual name of the font is by double clicking on it, and checking near the top of the font previewer.

1 Like