Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HaReL on Sun 13/05/2007 21:00:23

Title: Game in Hebrew
Post by: HaReL on Sun 13/05/2007 21:00:23
I want to build my game with a Hebrew interface. I tried to import a font in hebrew, but instead of letters I see only blank spaces.
I also tried to check the option "Write game text backwards (Hebrew-style)" and it doesn't help either.
I thought that maybe it will work, but when I tried to see a text in Hebrew - the message below had been appear:

(http://img228.imageshack.us/img228/4782/25818939vx2.jpg)

If there is anything that i can do, it will be great.
(I know that there is some solution, but I cant find how...)
Title: Re: Game in Hebrew
Post by: SupSuper on Sun 13/05/2007 22:27:41
Judging by the message, the game is still using a SCI font, which only supports standard characters and symbols (as shown in the Font window). Import a TTF (TrueType) font (for example from your Windows\Fonts folder) and that should fix it. Also, make sure the TTF font is being used: replace Font 0 for display text (GUIs, boxes, etc.) and Font 1 for speech text.
Title: Re: Game in Hebrew
Post by: Gilbert on Mon 14/05/2007 02:17:13
I don't know if this is fixed yet, but as far as I know, you can use ASCII #>127 TTF characters only if you use a translation, i.e. make the game in English, or just use some dummy text, and then make a Hebrew "translation" for it.

More info (http://americangirlscouts.org/agswiki/Graphics%2C_Characters%2C_Text_%26_Rooms#Error:_.22Cannot_display_message_with_extended_character_in_SCI_font..22) from the BFAQ.
Title: Re: Game in Hebrew
Post by: HaReL on Mon 14/05/2007 08:31:20
maybe I didn't explain myself good enough.  :-\
The problem is still when I import the font, I didn't even come to the part when I'm starting to translate..
(http://img207.imageshack.us/img207/1133/34651216wr4.jpg)
the blank places supposed to be letters in Hebrew. I tried A few fonts - and I get the same result.
Title: Re: Game in Hebrew
Post by: Gilbert on Mon 14/05/2007 08:48:53
I'm not sure how a hebrew font is composed of, it will work if it just uses the ordinary 256 slots for characters, but if it used complicated combination of bytes (like Chinese, Japanese, Korean fonts) to display a character it won't work at the moment. You'll need to remap the Hebrew characters to within the 256 slot area using some font utility then (which can be a pain when you need to enter those text yourself).
Title: Re: Game in Hebrew
Post by: HaReL on Mon 14/05/2007 19:21:08
Finally, I succeed to write in Hebrew. The solution was simple. My mistake was that I didn't import the font into Font 0, 1 , 2 but into 3,4... I thought that the font was not good, but the position that I imported into was wrong.
Anyway, thank's... ;)