Open rylydou opened 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
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...
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