soimy / msdf-bmfont-xml

Generate BMFont texture and spec XML using msdfgen
https://soimy.github.io/msdf-bmfont-xml/
MIT License
317 stars 46 forks source link

Missing padding info #42

Closed johh closed 5 years ago

johh commented 5 years ago

Hey there!

I've noticed that font.info.padding is always [0, 0, 0, 0]. Since some padding info is calculated here shouldn't that info be made available in font.info.padding? It'd come in handy when aligning things or calculating metrics.

I'm happy to submit a PR.

soimy commented 5 years ago

Real padding might introduce some artifacts in msdf textures (Not tested), but should be useful when dealing with sdf or svg output, but they are rarely used. If you think this is meaningful, PR is welcomed! Thank you.