Can I Change all font or just the main font with a code?

Started by Icey, Wed 29/09/2010 22:44:32

Previous topic - Next topic

Icey

In my game I want to change the font to a different language wit a code like

Code: ags
Game.font = Ariel;


Code: ags
setfont(Ariel);

monkey0506


Dualnames

If you're trying to do the equivalent of font processing done in your Wordpad or MS Word, then that can't really be done in AGS. At least not without you setting it up at first. And that may require lots of work. You see AGS uses fonts you IMPORT, and not what exists in your FONTS directory as Wordpad. Therefore you'd have to import them all. Plus in terms of size of font that is fixed when imported.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Icey

Nah,I just needed something like what monkey said although game.speechfont is not there.

Never mind got it working, thx guys :]

Ryan Timothy B

That's because it's uppercase Game.SpeechFont not game.SpeechFont.

SMF spam blocked by CleanTalk