msdf-atlas-gen icon indicating copy to clipboard operation
msdf-atlas-gen copied to clipboard

Feature Request: Output bmfont format

Open htdag opened this issue 4 years ago • 5 comments

Hi,

Export fnt (txt) or json with bmfont compatible format.

Is it doable?

Thanks in advance.

htdag avatar Aug 16 '20 14:08 htdag

Yes, it is doable, I actually wanted to do it but didn't have time.

Chlumsky avatar Aug 16 '20 21:08 Chlumsky

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? image

miltoncandelero avatar Sep 07 '21 23:09 miltoncandelero

Multiply it by the "size" entry and you got it in pixels. Very arcane indeed.

Chlumsky avatar Sep 11 '21 11:09 Chlumsky

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 avatar Sep 11 '21 14:09 miltoncandelero

@miltoncandelero

Did you complete a parser that converts the json format into bmfont format?

I would also like to work in bmfont.

pha3z avatar Feb 06 '23 02:02 pha3z