Change font via script call

How do I do this with RMXP? I looked on google and while I can change the default font, for some reason, I can't change it between text messages with script calls. I tried the following options:

Link 1
Link 2
Link 3

None of them seem to work, and I tried them on a blank project.
The best way to go about this is to use a custom message script that has a font-change option (I assume this exists, it's been a while).

Otherwise, the problem can be remediated by adding this line to Window_Message:
Code:
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.font.name = Font.default_name #<========== this one here
Then your events would look like
Code:
@>Text: Default font is Arial
@>Script: Font.default_name = 'Times New Roman'
@>Text: Now it's TNR
@>Script: Font.default_name = 'Arial'
@>Text: Back to Arial
Code:
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.font.name = Font.default_name #<========== this one here
Then your events would look like
Code:
@>Text: Default font is Arial
@>Script: Font.default_name = 'Times New Roman'
@>Text: Now it's TNR
@>Script: Font.default_name = 'Arial'
@>Text: Back to Arial
Ah, perfect! Thank you; it works like a charm!

Original thread: https://forums.rpgmakerweb.com/threads/change-font-via-script-call.143644/