Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: td on Fri 18/08/2006 13:37:46

Title: Different fonts for different language.
Post by: td on Fri 18/08/2006 13:37:46
Well i has confused. I trying to make game in two language: english and russian. At first i write all text in english and then translate in russian. Therefore appear two version: english and russian.
So i wanna make one version where player can chose language. In setup.exe is possible to chose but i metted a problem: i use different fonts for the game.
Can Engine change font if player change language in setup.exe?
Title: Re: Different fonts for different language.
Post by: strazer on Fri 18/08/2006 14:45:07
I think you can change the font numbers at the top of the translation source file.
So you would have to import all fonts for all languages into your game, then specify in the translation file which font to use.
Title: Re: Different fonts for different language.
Post by: Cinfa on Wed 07/02/2007 13:23:08
I have the same problem, I imported a TTF font with cyrillic characters, in the txt the font number is changed for both normal and speech, but the AGS engine still gives me the error about using SCI fonts instead of TTF.

The line in the translation are these:

// The normal font to use - DEFAULT or font number
#NormalFont=4
// The speech font to use - DEFAULT or font number
#SpeechFont=4
// Text direction - DEFAULT, LEFT or RIGHT
//#TextDirection=DEFAULT


Do I have to comment it back, or have to call some special functions in the global script?
Title: Re: Different fonts for different language.
Post by: Cinfa on Thu 08/02/2007 09:58:38
Made it work. I put a lot of

if(game.translationfilename == "blablabla")
{

around the code.