msdf-atlas-gen
msdf-atlas-gen copied to clipboard
Feature Request: Output bmfont format
Hi,
Export fnt (txt) or json with bmfont compatible format.
Is it doable?
Thanks in advance.
Yes, it is doable, I actually wanted to do it but didn't have time.
Similar to this idea I was trying to parse the outputted json directly however I found that glyph.advance
is in some kind of arcane ratio and not in pixels.
@Chlumsky are there any docs on how to make sense of the numbers exported in the glyph of the json export?
Multiply it by the "size"
entry and you got it in pixels. Very arcane indeed.
That makes sense, sorry that I came up a bit rough I had fought that for hours and I was frustrated.
You made a great tool! ✨
@miltoncandelero
Did you complete a parser that converts the json format into bmfont format?
I would also like to work in bmfont.