Change Font in Message Box?

Is there some way not to change the main menu font, but to be able to change the font when needed, for a message box?

What I'm doing is going for a graphical character journal for my game, and I have a nice image of a blank book which I load when the character uses the journal in their inventory... What I want to happen next is to be able to simply place text from a message box atop that image background, and use it to display the journal entries. Now the character concept here is of one of those very neat and tidy little bookworms, and I just can't imagine them writing in anything other than an elegant script -- but I don't want the rest of my menus to be in cursive; JUST the writing which I toss up via the message box.

Is there a plug-in in MZ to load a font and call it as needed? Or do I simply need to settle to pre-creating my journal pages as image files and then swapping them in/out as needed as the character turns the pages in the book?
This plugin can do that:
I saw two options for font face with that plug in, but I never could sort out how to get it to work for me.
\FontChange<x> Changes font face to x font name.
\ResetFont Resets font settings.

For the \FontChange, does someone have an example of actual syntax? My chosen font is "DancingScript-Regular.woff", and it's located inside my project \font folder, where I imagine it should be, but I'm not loading it in game.

Does the name need to be in quotes? Or not? (\FontChange<my_font.woff> or \FontChange<"my_font.woff">)

Will this plug-in work with the woff format? Or do I need TTF? I'll attach the font below so others can test it out, if they wish, and let me know if it's a particular font issue I'm dealing with here, or a syntax incompatibility.
I saw two options for font face with that plug in, but I never could sort out how to get it to work for me.
\FontChange<x> Changes font face to x font name.
\ResetFont Resets font settings.

For the \FontChange, does someone have an example of actual syntax? My chosen font is "DancingScript-Regular.woff", and it's located inside my project \font folder, where I imagine it should be, but I'm not loading it in game.

Does the name need to be in quotes? Or not? (\FontChange<my_font.woff> or \FontChange<"my_font.woff">)

Will this plug-in work with the woff format? Or do I need TTF? I'll attach the font below so others can test it out, if they wish, and let me know if it's a particular font issue I'm dealing with here, or a syntax incompatibility.
Your font worked for me out-of-the-box.
Code:
Show Text:
I can send you off to the dungeon, but beware,
\FontChange<DancingScript-Regular>you cannot return (yet).
\ResetFontDo you wish to go?

fontchange.png


As you can see, the middle line is in a different font.
I guess you would need double quotes only if your font name contains a space.
Your font worked for me out-of-the-box.

View attachment 193537

As you can see, the middle line is in a different font.
I guess you would need double quotes only if your font name contains a space.

Except it didn't. 😛

As you can see from the Google Font page here https://fonts.google.com/specimen/Dancing+Script , this is a cursive font. If it's working as intended, the font will be an elegant cursive text. I'm not certain which font you're loading (one of the alternative ones, I guess?), but it's not the proper one here. 😉

(One thing I did notice, with your syntax, you didn't include any sort of extension with the font. Wouldn't it need the .ttf extension for the file name?)
Oh, you're right. I managed to make the code work, but unfortunately not with your font.

Try this, for example:

event.png

It will produce a result like this:
courier_new_text.png

So I guess the command works with installed fonts but not with those in the project font folder. I guess someone needs to inform VisuStella to take a look.

I guess the easier current situation is to just prepare the pages as images and use those until the issue is fixed.
After studying your screenshots, and scratching my head for about half an hour, I *FINALLY* came up with the proper combination which works here.

First issue I was having: With v1.3.1 you can have items in folders. When I downloaded the VisuaStella plug-ins, they're already in Wave Bundles... I just loaded them, as they exist, while in those folders.

This does NOT work.

Plugins don't work with folders and have to be in the main .js folder, and not inside any sort of sub-folder to work.



Clue Two of what was wrong, was in your screen shot above. You used "Courier New" as the font name, whereas the filename for the font is "cour.ttf". I was thinking that the plugin would happen to want the file name to work -- it doesn't. It wants the FONT NAME, as illustrated in the image below:

Font.png


If you look in the top left, you can see the Font Name is listed as "Dancing Script", which is quite a bit different than what we were both trying to plug in and make work earlier.



With those issues corrected, this is what I'm now looking at in game, for my character's journal:

Journal.png


Playing around with the VisuStella plug-in, the only real issue I have with it is that it appears that 8 lines is the maximum that it'll display in a single message box. Any more than that, and the formatting goes all to BLEEP.

As it is though, I think this type of set-up will work rather nicely for my needs. I can create a Journal menu and then add entries one at a time to it, and allow the user to select the desired "scroll" which they want to look back on and reference at any time in the future.

Original thread: https://forums.rpgmakerweb.com/threads/change-font-in-message-box.137854/