Sorry, may be i'm doing something wrong, but i can't use cyrillic with TextField. I'm trying different fonts but result is still same. Is it possible to use cyrillic with Gideros Mobile?
Yes, it's possible I have no problem with cyrillic font. If you use ttf-font in your program (TTFont.new()), open font file and look the cyrillic there. Not all fonts contain cyrillic. If you create bitmap-font from ttf-font (which contains cyrillic) with Gideros Font Creator, you need to type cyrillic chars (big and small) in Chars field. There are no cyrillic chars by default in Chars field and it create bitmap-font with no cyrillic (even if ttf-font contain it). Look @ar2rsawseen's link for bitmap-fonts.
But when i'm trying to load cyrillic symbols from file it shows a square before first symbols. Console shows file right. What should i do to remove square?
Hello, well every setText, or setFont, etc method call makes it reload all the text in TextWrap, so to make it faster, try to provide everything you have in constructor. Right now it is possible to provide TextWrap.new(text, width, alignment, lineSpacing, font)
This will be as fast as it can go, because internally it is still based on multiple TextFields, it's not a native plugin.
Comments
http://www.giderosmobile.com/forum/discussion/65
Likes: unlying
I have no problem with cyrillic font.
If you use ttf-font in your program (TTFont.new()), open font file and look the cyrillic there. Not all fonts contain cyrillic.
If you create bitmap-font from ttf-font (which contains cyrillic) with Gideros Font Creator, you need to type cyrillic chars (big and small) in Chars field. There are no cyrillic chars by default in Chars field and it create bitmap-font with no cyrillic (even if ttf-font contain it). Look @ar2rsawseen's link for bitmap-fonts.
Likes: unlying
Thanks for answers.
How can i speed up it? I'm using TextWrap by ar2rsawseen.
well every setText, or setFont, etc method call makes it reload all the text in TextWrap, so to make it faster, try to provide everything you have in constructor. Right now it is possible to provide
TextWrap.new(text, width, alignment, lineSpacing, font)
This will be as fast as it can go, because internally it is still based on multiple TextFields, it's not a native plugin.
Likes: unlying