different language font

Started by Babar, Sun 01/08/2004 15:54:36

Previous topic - Next topic

Babar

I was wondering if it is possible to have different language fonts in AGS. One in particular I found difficult was the arabic or urdu font. It is written from right to left, which I believe can be done, but the problem is that it is like a cursive font. What I mean is that each character would be different depending on the character before and after it. Is it possible to implement this? Also, exactly how many characters are allowed? Would it be possible to have multiple languages? I mean that in the game, the character will meet many people who will speak in different languages.
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

Moox

On the main game page you can pick read right to left

Proskrito

Have you tried to use TTF fonts? i think they can do what you want, but im not 100% sure.

Pumaman

I'm not sure what you mean. SetNormalFont can change the currently font, and SetGameOption can toggle the left-right text direction.

Babar

Quote from: Proskrito on Sun 01/08/2004 17:07:43
Have you tried to use TTF fonts? i think they can do what you want, but I'm not 100% sure.
I tried getting an arabic TTF font, but since my computer is not configured for arabic, it showed up as English. I tried adding arabic as a language, but English was the only option. Do you know how I can work around this?

Quote from: Pumaman on Sun 01/08/2004 21:45:45
I'm not sure what you mean. SetNormalFont can change the currently font, and SetGameOption can toggle the left-right text direction.
Thanks... I did not know that you could have more than 3 basic fonts. Silly me. That means that I can load many different font sets into AGS and switch to new ones using SetNormalFont? That solves one problem.
There is still the thing with the connecting letters in the Arabic/urdu style font. Another way I thought of was to have a different character for each different version of the letter that is to be used, but that will use up a lot of characters. Is there a limit to the amount of characters a font is allowed in AGS?
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

Kinoko

I think Proskrito is right. You should get ahold of an Arabic TTF font and try using that.

Quote from: Babloyi on Sun 01/08/2004 22:23:40
I tried getting an arabic TTF font, but since my computer is not configured for arabic, it showed up as English.
Code: ags


In AGS? Or in some other program? Try putting the font into AGS and using it is arabic in your game... it should work and if not, then... sorry, I was wrong.[/quote]

AGS-GD

Hi,

The only way for integrating Arabic into your game is to have each drawing of the character as a whole character -as you suggested-, I have made an Arabic font pack for AGS which you can use. The font pack includes the font itself, and a tool in which you type in the Arabic text you want to appear in your game and then the tool will change your Arabic text into English letters which can be used in AGS. This conversion tool selects the right character to be used based on its place in the text -if it's in the middle or beginning, etc...-

There are also a few script commands that can set the alignment of text (left-to-right or right-to-left) you can use these if you want to switch between more than one language in your game.

Contact me at: rani_hasan@hotmail.com if you are interested in the font pack.

Can you tell me where are you from and what kind of project/game are you planning to make?

Babar

#7
Thanks for all the help. It turns out that the ttf I downloaded worked. AGS-GD, thanks for the offer, I would have taken you up on the converter tool, but I have an arabic-english keyboard, so there should be no problem there. The game I was planning involved a lot of traveling, and it takes place in a fantasy past setting, where the player will go around to many different places, including some where urdu is spoken.
These questions weren't really deserving of the technical forum, but thanks for all the help. It can be locked now.
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

SMF spam blocked by CleanTalk