vladimirgamalyan / fontbm

BMFont compatible, cross-platform (Linux/macOS/Windows) command line bitmap font generator (FreeType2 based).
MIT License
241 stars 38 forks source link

Some kerning missing #4

Closed htdag closed 5 years ago

htdag commented 5 years ago

TTF vs BMFont vs FontBM (ươ ượ VA ...). From image, bitmap font from fontbm with --include-kerning-pairs but kerning amount is wrong.

vladimirgamalyan commented 5 years ago

Nice catch! Can you share your command line and font and then I could reproduce the problem.

htdag commented 5 years ago

fontbm --font-file sample.ttf --output sample --font-size 48 --texture-width 512 --texture-height 384 --data-format xml --include-kerning-pairs --chars-file "chars.txt"

vladimirgamalyan commented 5 years ago

Just fixed missing kernings, there was only one kerning value for each pair of characters (for example for A and V, but not for V and A).