Problem with a special font

Started by Mehrdad, Tue 27/04/2010 16:28:35

Previous topic - Next topic

Mehrdad

Hi
I want make persian fonts(farsi) with font editor(Radiant).english Alphabet is 26 word.but persian is 32.
problem 1: how do i make and synchronize with keyboard?
problem 2:persian fonts is true type.and change any word after press space key.for ex: if me does type L,and press space now.its will be changed to new symbol.we have (for" I" word example):first I ,middle I ,end I. and it's will be a difficult make with keyboard.(keypad is not enough for that)
problem 3: Can I import a pre-existing font straight into the editor(without use GUI)if is possible please lead me.
I dont want use Gui for dialogues because i get a huge exe.and i can not  make translation for choose language between english and persian in winsetup.exe (AFAIK course)

sorry for bad english
My official site: http://www.pershaland.com/

Khris

I'm gonna try to answer this backwards:

3: You can do that but AGS supports only the first 256 characters.

2: If the three "I" look different you'll need three different slots (if you're using Radiant's FontEdit). So what is the total amount of different symbols?

1: Say it's around 50, then in theory all you have to do is overwrite other characters you don't need (e.g. $ % & etc.). That's pretty inconvient for game design of course, every string inside the game/code will look like random characters. You could stick tiny pieces of paper on the keyboard and draw the farsi characters on them, then type in the game's strings blindly.

Mehrdad

Quote from: Khris on Tue 27/04/2010 18:20:04
3: You can do that but AGS supports only the first 256 characters.
Is it 256 char for per dialogue or totally in the game?
anyway , how do it?
Quote from: Khris on Tue 27/04/2010 18:20:04
2: If the three "I" look different you'll need three different slots (if you're using Radiant's FontEdit). So what is the total amount of different symbols?
......mmmm....I think pretty need  90 slot!!!.
Quote from: Khris on Tue 27/04/2010 18:20:04
1: Say it's around 50, then in theory all you have to do is overwrite other characters you don't need (e.g. $ % & etc.). That's pretty inconvient for game design of course, every string inside the game/code will look like random characters. You could stick tiny pieces of paper on the keyboard and draw the farsi characters on them, then type in the game's strings blindly.
Thats right.but I think need more key.can you explain clearly what i do?

*farsi fonts is pretty similar to arabic.but have more than it.
My official site: http://www.pershaland.com/

abstauber

Just in case you want to create a bitmap ttf font, take a look at these online tools:

BitfontMaker
http://pentacom.jp/soft/ex/font/edit_canvas.html

FontStruct
http://fontstruct.fontshop.com/

(thanks to ProgZ for telling me)

Khris

Mehrdad:

Say you have a TrueType font with 400 different symbols, ok? You won't be able to show the latter 144 in AGS, only the first 256.

Ok, 90 symbols?
Say you open FontEdit and start by drawing over 'A', then 'B', and so on. After you import that font into AGS, you will have 90 farsi symbols mapped to ASCII codes 65 - 154.
Now you want to display a farsi word in the game. You can't type farsi into the editor or code, so you'll need a way to convert the farsi word into latin characters. (In code, it'll look like this: Display("g&Bw2Ps");)
So my suggestion was to take a little piece of post-it paper, stick it to the A key on your keyboard, then write the first symbol (mapped to A = 65) at the top, then the 33rd symbol (mapped to a = 97) at the bottom.

Take a look at the actual codetable:
http://en.wikipedia.org/wiki/Ascii#ASCII_printable_characters
All those can be produced using the keyboard.

You can use codes 37 - 126 for the symbols. That way you have space (32) and four others left to use for additional symbols ( !, ?, etc.)
So the first symbol will actually overwrite the % sign.

If you don't want to glue 60+ small pieces of paper to your keyboard, you could simply use a list of the symbols with the latin character next to them.
Or you could actually write a small AGS program that will draw all 90 symbols on the screen using the farsi font and you compose words by clicking them in order. It will then display the resulting latin string in a box on the screen for you to re-enter it into the game's code.

abstauber

sorry for being offtopic... but which benefit do you get by using SCI fonts instead of TTF?

Is it just because of the editor? I mean, bitmap fonts aren't too hard to create with the tools mentioned above.

Just being curious..

Mehrdad

#6
Khris:
thanks for leading.but:
All fonts in english is full separate.and we can make thats very easy.but in the farsi fonts ,we have full compact word.
lets me show a pic for better meaning:


in pic above i use a example "apple" for "B" word that we read("sib")in farsi.
how do i compact word?

abstauber :
thanks for links.do you have any free OFFLINE font editor?(with notice pic above)

EDIT:I make a special font for farsi support.It was very hard work.but finally done.I'm very confused for typing!!!(because: read this topic).and now my game have 2 language :D

thanks Khris.thanks abstauber
My official site: http://www.pershaland.com/

SMF spam blocked by CleanTalk