Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: FlyRider on Thu 27/10/2005 12:55:44

Title: How to display swedish characters
Post by: FlyRider on Thu 27/10/2005 12:55:44
I want to use swedish characters like "å,ä,ö" in my game. What should I do to make the game understand them and display them?
Title: Re: How to display swedish characters
Post by: aussie on Thu 27/10/2005 13:00:26
You can get a true type font (like the ones you use in word) and import it into AGS.

I think you need to rename whichever font it is to "agsfntX.ttf" (where X is a number).

Title: Re: How to display swedish characters
Post by: FlyRider on Thu 27/10/2005 13:01:58
Ok, thanks, but how do I tell the game to use that font?
Title: Re: How to display swedish characters
Post by: Ashen on Thu 27/10/2005 13:17:36
For Display(...) commands, and most other text: SetNormalFont(x);
For Speech: SetSpeechFont(x);
(In game_start would probably be best.)

For GUI Labels (Buttons, ListBoxes etc), just set the 'Font:' option in the editor.
Title: Re: How to display swedish characters
Post by: aussie on Thu 27/10/2005 14:19:36
Or you can simply import over fonts 0, 1 and 2 in the AGS editor font tab.
Title: Re: How to display swedish characters
Post by: Ashen on Thu 27/10/2005 15:55:04
Well, sure. If you want to do it the easy way ...

Although if you import over those fonts, and then need others (e.g. for a translation) you'll need to re-import some others. Importing the Swedish fonts as extras saves a tiny, tiny amount of time & effort.
Title: Re: How to display swedish characters
Post by: Sukotto on Fri 28/10/2005 03:34:00
yea, in the global script, under "function game start() {", and then the REM mumbo-jumbo
Title: Re: How to display swedish characters
Post by: FlyRider on Fri 28/10/2005 12:38:20
Hey, thanks for all good answers! It worked. But now I need a font with outlined characters (White with black lines like one of the default fonts). Is there an easy way to edit a truetypefont and make lines arond it? Or maybe someone has a truetype font for me to download?
Title: Re: How to display swedish characters
Post by: Elliott Hird on Fri 28/10/2005 14:16:14
"use with outline font: AUTOMATIC"


da-da-da!
Title: Re: How to display swedish characters
Post by: FlyRider on Fri 28/10/2005 15:47:42
Ok, so where in the script should I put the command?
Title: Re: How to display swedish characters
Post by: petazzo on Sun 30/10/2005 10:59:48
select it from the font tab