But latest version of Gideros supports BMFont format natively. Just load your bitmap font with Font.new("font.fnt", "font.png") and create your TextField.
my code: ... local font = Font.new("font/DroidSerif-BoldItalic.txt", "font/DroidSerif-BoldItalic.png") local scoreLabel = TextField.new(font,"Hello Giderans xy šššššššššššŠčČćĆžŽđĐ!") scoreLabel:setPosition(10, 30) stage:addChild(scoreLabel) ...
If you open DroidSerif-BoldItalic.txt and delete "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4" then it'll be displayed correctly.
btw, which tool did you use? because "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4" means "white text with alpha" but apparently your text is green with some outline
Super, works now! My procedure: first I have used Gideros Font Creator, import font and at the end add some unicode characters. After that I exported font to png file and open it in Photoshop, redesign it and overwrite generated png file. I've never modify font's txt file! I can confirm: attributes "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4" was added to txt file by Gideros Font Creator.
whoa that's great. Gideros Font Creator adds "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4" because it exports white text with alpha.
Also there is another option without removing "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4". If you only add scoreLabel:setTextColor(0xffffff), it'll be again displayed correctly.
Comments
But latest version of Gideros supports BMFont format natively. Just load your bitmap font with Font.new("font.fnt", "font.png") and create your TextField.
any idea why?
...
local font = Font.new("font/DroidSerif-BoldItalic.txt", "font/DroidSerif-BoldItalic.png")
local scoreLabel = TextField.new(font,"Hello Giderans xy šššššššššššŠčČćĆžŽđĐ!")
scoreLabel:setPosition(10, 30)
stage:addChild(scoreLabel)
...
btw, which tool did you use? because "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4" means "white text with alpha" but apparently your text is green with some outline
Also there is another option without removing "alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4". If you only add scoreLabel:setTextColor(0xffffff), it'll be again displayed correctly.