Slavic Fonts

Matejko051

  • Posts: 39
Hi,
I would like to add text with Croatian characters čćžđš.
And I fail.
first  5 Croatian characters are skipped and only letter X shows.
I added .ttf fonts , set font to "croatian" and čćžđš just don't appear?




yoplalala

  • *
  • Posts: 1632
if your text is hard coded in stencyl  or croation is just ANSI you can use the external data extension and use the unicode block.

Then try to save the text in a attribtue, if it doesn't draw you must use convertToPseudoUnicode(), you can try looking on the forum for how to use it.

Matejko051

  • Posts: 39
I'm  lost.
From codes down.
Test game in Flash;
 I see first 4 rows  with no problem
Attribute "2" is text containing čćžđš fonts
Attribute "3" is text from list containing čćžđš fonts

Android:
There is no čćžđš fonts in attribute 2

In "main project"  I don't see čćžđš fonts at android in flash works fine.
using attribute (3) from list.
I made test game with one screen  just for fonts and i don't get it at all.


havana24

  • *
  • Posts: 508
Hi,

Have you tried by adding letters "čćžđš" into the custom font setting?
You need to put all the characters you want, so the whole alphabet and the accent characters.
See attachment.

-Alessandro
My Website: www.havana24.net

Matejko051

  • Posts: 39
yes they are there.
what makes me confused is that "font test game" uses same fonts and  setup and it works on android device but game don't?
word ćevapćić is shown as evapi

yoplalala

  • *
  • Posts: 1632
Try to use the convert to pseudo unicode method

like for example in draw text 1
put a code block with    "convertToPseudoUnicode(_1)" inside of it .  Same for 2 and 3. Does it work ?

Matejko051

  • Posts: 39
After sleepover..

Difference between font testing game(from above) and project(with problem) is in game attributes..
in game I call drawing word  from game  attributes and in font testing game I call word from screen attributes...
down in attachment
attributes; word, rijeć & jebo 
when testing in flash all work
on android device only jebo shows  čćžđš letters.

conclusion for android:
 if you use Getter attribute (list) you don't need to use convertToPseudoUnicode(),
If you use game attribute (list) you need to convert text to Getter attribute and use convertToPseudoUnicode(),

topic;
http://community.stencyl.com/index.php/index.php?topic=44297.msg247831#msg247831
don't show solution and esttt.stencyl file can not be opened on my machine.


« Last Edit: March 31, 2016, 12:55:44 am by Matejko051 »