The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Zethzune on July 07, 2007, 12:12:48 PM

Title: Fonts in RMXP [Resolved]
Post by: Zethzune on July 07, 2007, 12:12:48 PM
The official version of RMXP apparently doesn't have the spot to specify the default font RGSS on a new project, but I got this part figured out based on a forum search... But I can't find anything else useful searching.
Does anyone know how to use more than one font, or change the font for a specific thing? I have a really good font for the menu system, but it's not easy enough to read to use for dialog... So I need to use a regular font like Arial or Times New Roman for the window_message script but in the RGSS help manual fontface isn't one of the properties of a window, or it's contents. D:
Title: Re: Fonts in RMXP
Post by: modern algebra on July 07, 2007, 04:32:26 PM
Well, most Advanced Message Scripts have an option so that you can change fonts, either in the script or in events. As well, it is easy to change font in a window for menus and the like. I think the code is:

self.contents.font = Font.new ("nameoffont")

Actually, that's a complete guess. I'll take a look at an AMS soon and see what they do to change fonts
Title: Re: Fonts in RMXP
Post by: Zethzune on July 07, 2007, 04:46:43 PM
Thanks :D I'll try that
Title: Re: Fonts in RMXP
Post by: modern algebra on July 07, 2007, 05:00:52 PM
it might even just be like this:

self.contents.font.name = "fontname"

I'm not sure. Get back to me on it.

EDIT: Just tested:

self.contents.font.name = "fontname"

works!
Title: Re: Fonts in RMXP
Post by: Irock on July 07, 2007, 05:12:22 PM
Add this to main before begin.
Font.default_name = "Arial"
Font.default_size = 22
Title: Re: Fonts in RMXP
Post by: modern algebra on July 07, 2007, 05:29:27 PM
Yeah, but he wants to use separate fonts for different windows. He doesn't want everything to be default.
Title: Re: Fonts in RMXP
Post by: Zethzune on July 07, 2007, 07:14:34 PM
Yeah, thanks for the help. :D
I'm just about to test it now.

Edit: It works.