Chlumsky / msdf-atlas-gen

MSDF font atlas generator
MIT License
802 stars 177 forks source link

Empty kerning array in json #43

Open rylydou opened 2 years ago

rylydou commented 2 years ago

The json contains and empty array for kerning.

Command: ./msdf-atlas-gen -font Montserrat-SemiBold.ttf -json Montserrat.json -imageout Montserrat.json.png -type mtsdf (The double extension on -imageout is just how the engine handles fonts)

Font used: Montserrat SemiBold (ttf) Platform: Fedora Linux x86_64

rylydou commented 2 years ago

Turns out this is not supported but there is a workaround https://github.com/Chlumsky/msdf-atlas-gen/issues/4#issuecomment-792912921

wrightwriter commented 11 months ago

I used stb_truetype.h to get kerning info. I think this should be used in msdf-atlas-gen. Couldn't get any of the fonts I tried to output kerning data...