soimy / msdf-bmfont-xml

Generate BMFont texture and spec XML using msdfgen

Home Page:https://soimy.github.io/msdf-bmfont-xml/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing padding info

johh opened this issue · comments

commented

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.

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.