RMMZ: Script for Changing Font Mid-Game

Hello there,

I know this was an option for some previous versions of RPG Maker, but I can't seem to find a script or plugin to change the game's main font mid-game (for instance, after a certain event occurs). I'm able to change it temporarily within messages using VisuStella's Message Core plugin, but it automatically reverts to the default font afterwards.

Any help would be much appreciated!
Just bumping since it's well after 72 hours in case any new viewers have any thoughts. If I manage to figure out a solution in the meantime I'll definitely post what worked for me.:LZSsmile:
Modify the game's Graphics.default_font_name property.

Code:
# Replace "New Font" with the name of the font you want to use
Graphics.default_font_name = "New Font"

You can then call this script at any point in your game using an event, a common event, or a plugin command.
Thanks for the response! I tried this code but it didn't seem to work for me...it might be RMMV-specific.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-script-for-changing-font-mid-game.153222/