Chlumsky / msdf-atlas-gen

MSDF font atlas generator
MIT License
783 stars 175 forks source link

Where is the kerning information in the csv output? #52

Open DeexCoding opened 1 year ago

DeexCoding commented 1 year ago

Why is the csv ouput lacking information and not documented at all?

Chlumsky commented 1 year ago

Why? Because obviously you can only represent one type of data in CSV, there is nowhere to put it. Not documented?

  • -csv <filename.csv> – writes the glyph layout data into a simple CSV file

It clearly says that only glyph layout data will be written, nothing else. Lacking information? Well, the kerning table is directly copied from the font file, it's not something generated (or even used) by this program, and it's only written to JSON as a bonus, you can parse it from the font yourself.

If you find the CSV output insufficient or lacking documentation, that's exactly why there are multiple format options, so simply use the one that best fits your needs.

DeexCoding commented 1 year ago

For your first point, I meant the first number in the line is the character codepoint second is the advance and so on. I should not have to dig into the source code to know which number means what.

For your second point, you got me there.

For your third point, no. If you provide csv, generally, a good library documents how it's csv files are laid out.

I forgot to mention this in my intial post, but even though I am sounding harsh here I admire the work you do here and that you put a very high quailty thesis out onto the internet for everyone to use is very cool. Keep up the great work!