Different fonts for different language.

Started by td, Fri 18/08/2006 13:37:46

Previous topic - Next topic

td

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?

strazer

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.

Cinfa

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:
Code: ags

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

Cinfa

Made it work. I put a lot of
Code: ags

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

around the code.

SMF spam blocked by CleanTalk