Experience-Monks / msdf-bmfont

Generate BMFont texture and spec using msdfgen
MIT License
164 stars 66 forks source link

Fix Yoffset and padding issue. #14

Closed soimy closed 7 years ago

soimy commented 7 years ago

SDF distanceRange should be taken into account for padding and baseline computation. Also for accurate and platform dependent metric computation, we should use os2 table sTypoAscender instead of font.ascender. (Reference: https://stackoverflow.com/questions/19856094/computing-font-truetype-hhea-values-ascender-descender )

arilotter commented 7 years ago

Thanks! I'll test soon & release 1.4 :)