How to display swedish characters

Started by FlyRider, Thu 27/10/2005 12:55:44

Previous topic - Next topic

FlyRider

I want to use swedish characters like "å,ä,ö" in my game. What should I do to make the game understand them and display them?

aussie

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).

It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

FlyRider

Ok, thanks, but how do I tell the game to use that font?

Ashen

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.
I know what you're thinking ... Don't think that.

aussie

Or you can simply import over fonts 0, 1 and 2 in the AGS editor font tab.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

Ashen

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.
I know what you're thinking ... Don't think that.

Sukotto

#6
yea, in the global script, under "function game start() {", and then the REM mumbo-jumbo
"...If you do something just right...people won't be sure you've done anything at all..."
--God--

FlyRider

#7
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?

Elliott Hird

"use with outline font: AUTOMATIC"


da-da-da!

FlyRider

Ok, so where in the script should I put the command?

petazzo

I never forget a face, but in your case I'll be glad to make an exception.
(Groucho Marx)

SMF spam blocked by CleanTalk