RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Fonts in RMXP [Resolved]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 90
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:
« Last Edit: July 08, 2007, 01:09:01 PM by Zethzune »
My strength is that of ten men, for I am wired to the eyeballs on espresso!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
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

**
Rep: +0/-0Level 90
Thanks :D I'll try that
My strength is that of ten men, for I am wired to the eyeballs on espresso!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
it might even just be like this:

Code: [Select]
self.contents.font.name = "fontname"

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

EDIT: Just tested:

Code: [Select]
self.contents.font.name = "fontname"

works!

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Add this to main before begin.
Code: [Select]
Font.default_name = "Arial"
Font.default_size = 22

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Yeah, but he wants to use separate fonts for different windows. He doesn't want everything to be default.

**
Rep: +0/-0Level 90
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!