For the life of me I cannot get it to work.
I exported a font using BMFont.
The font.fnt file looks as follows:
info face="TheFontName" size=20 bold=1 italic=0 charset="" unicode=1 stretchH=125 smooth=0 aa=1 padding=0,0,0,1 spacing=1,1 outline=0
common lineHeight=25 base=22 scaleW=256 scaleH=150 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0
page id=0 file="font_0.png"
chars count=3
char id=216 x=0 y=0 width=12 height=18 xoffset=0 yoffset=4 xadvance=13 page=0 chnl=15
char id=229 x=13 y=0 width=9 height=18 xoffset=0 yoffset=3 xadvance=10 page=0 chnl=15
char id=248 x=23 y=0 width=10 height=14 xoffset=0 yoffset=8 xadvance=10 page=0 chnl=15
The png looks as follows:
My string resource looks as follows:
<strings>
<string id="myStr">øå</string>
</strings>
My font resource looks as follows:
<fonts>
<font id="font" filename="font.fnt" filter="øå" />
</fonts>
And in code I set it as follows:
function onUpdate(dc) {
var str = Ui.loadResource(Rez.Strings.myStr);
var view = View.findDrawableById("TimeLabel");
view.setText(str);
View.onUpdate(dc);
}
But it does not display any of the special chars. If I export normal characters together with the special characters and add them to the filter in the font resource, and I change my string resource to something like "Lør", then only "Lr" gets displayed.
Any ideas?