Main Menu
  • Welcome to The RPG Maker Resource Kit.

Fonts in RMXP [Resolved]

Started by Zethzune, July 07, 2007, 12:12:48 PM

0 Members and 1 Guest are viewing this topic.

Zethzune

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:
My strength is that of ten men, for I am wired to the eyeballs on espresso!

modern algebra

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

Zethzune

My strength is that of ten men, for I am wired to the eyeballs on espresso!

modern algebra

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!

Irock

Add this to main before begin.
Font.default_name = "Arial"
Font.default_size = 22

modern algebra

Yeah, but he wants to use separate fonts for different windows. He doesn't want everything to be default.

Zethzune

Yeah, thanks for the help. :D
I'm just about to test it now.

Edit: It works.
My strength is that of ten men, for I am wired to the eyeballs on espresso!