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

Where is the kerning information in the csv output?

Open DeexCoding opened this issue 2 years ago • 2 comments

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

DeexCoding avatar Oct 29 '22 12:10 DeexCoding

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.

Chlumsky avatar Oct 29 '22 12:10 Chlumsky

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!

DeexCoding avatar Oct 29 '22 20:10 DeexCoding