soimy/msdf-bmfont-xml

Missing characters in export png

yooni126 opened this issue · 6 comments

in last issue you said that I must use a font with a lot of standard ASC-II characters
so I use this font :
https://www.dropbox.com/s/1fuigy78xi2jtx5/iransans.fnt?dl=0

and set charset.txt to these text:
ببب ب
تتت ت
ضضض ض
صصص ص
ثثث ث
ققق ق
ففف ف
غغغ غ
ععع ع
ههه ه
خخخ خ
ححح ح
ججج ج
چچچ چ
ششش ش
سسس س
ییی ئ ی ي
ببب ب
للل ل
اآ
ننن ن
ممم م
ککک ک
گگگ گ
ظظظ ظ
ططط ط
زرژ
و
ذد
پپپ پ
َُِّ
":><؟{}|+_()&*!@#$%×÷÷`|;'[].,/\،-=
12345567890

But my export png is still a problem :(
iransans 0

oh I forgot that one of my friends gave me a solution but its very strange:
myflashlab/RTL-BitmapFont#1

soimy commented

@yooni126 can you post the generated .fnt file, the feeded charset.txt and the exact command/argument in the generation?
There are no more missing glyphs but apparently, not all glyphs are in the font atlas. I need to know why.
Also a side note: charset.txt shall be encoded with UTF-8

yes of course
you can download it from this link :
https://www.dropbox.com/s/ngywyipv8b1wl2z/soimy.zip?dl=0

please read readMe file in 2 folders;

did you see zip file? was it clear?

soimy commented

yes, clear enough.
Just back to work, I'll look into it soon and keep you update.
BTW, I'll also try to find a solution on RTL xoffset and xadvance mentioned by myflashlab/RTL-BitmapFont#1

soimy commented

Close via f4bc573
Please update your msdf-bmfont-xml to the newest version for testing. If any problem, you are welcomed to re-open this issue.
Read the updated Readme for instruction. Add a flag(--rtl) in CLI to fix Arabic/Persian bugs.