Some of the Turkish language letters does not show up in fonts

Started by fancasopedia, Sat 31/08/2019 10:41:14

Previous topic - Next topic

fancasopedia

Hi everyone,
  We are a small team in Turkey. To publish our game in Turkey, we need to use turkish alphabet. I tried and searched for specific solution but unfortunately i didn't find any solution. I import more than 15 tff which includes Turkish letters, AGS recognize one or two of them. For example Ç, Is there any option in game or function that can help me? Or is there any different kind a trick to solve this problem.

When the characters start to talk, the turkish letters turning into rubbish symbols.

Letters that should be in game : iÃ,,° ŠŸŠž Ã,,ŸÃ,,ž çÇ öÖ üÜ

If i can't solve this problem, I need to change my game engine :( I dont want to change it, so please help me with that guys. Thank you...

Crimson Wizard

AGS does not support Unicode, it is a strictly ANSI program (it's old). This means that you need to:

1) Find a font corresponding to the Turkish ANSI codepage: https://en.wikipedia.org/wiki/Windows-1254
2) Make sure that when you write and save turkish text in the ags script or TRS file you have Turkish as a base system locale set (locale for non-Unicode programs).
Only then the typed text will match the font characters correctly.

eri0o

Someone I have no idea who wrote a plug-in to display utf-8 text, I accidentally found the source online, but as I understand using it means you won't be able to use the AGS dialog editor, and won't be able to use AGS Editor to directly write code on the scripts that have strings.

https://github.com/bggd/AGSBMFontRenderer

Crimson Wizard

Quote from: eri0o on Sat 31/08/2019 15:43:14
Someone I have no idea who wrote a plug-in to display utf-8 text, I accidentally found the source online

https://github.com/bggd/AGSBMFontRenderer

Here's the forum thread: https://www.adventuregamestudio.co.uk/forums/index.php?topic=52207.0
(although there's not much in there)

fancasopedia

Quote from: Crimson Wizard on Sat 31/08/2019 14:51:25
AGS does not support Unicode, it is a strictly ANSI program (it's old). This means that you need to:

1) Find a font corresponding to the Turkish ANSI codepage: https://en.wikipedia.org/wiki/Windows-1254
2) Make sure that when you write and save turkish text in the ags script or TRS file you have Turkish as a base system locale set (locale for non-Unicode programs).
Only then the typed text will match the font characters correctly.

Hi again,
I tried to find different fonts but result is same as old. Also, this plugin does not have .dll extension. Could you find example of font :(


Crimson Wizard

Well, you need to find a font corresponding to CP-1254, or make one by editing existing one.

Second option would usually require only moving existing letters from their unicode slots to slots that comply to CP-1254 table.
There are free font editors, for example FontForge: https://fontforge.github.io/en-US/

Maybe there are some automatic utilities that can do same...

fancasopedia

FontForge saved my life, and of course you :) Thank you for help guys. ;)

SMF spam blocked by CleanTalk