Generate MSDF fonts using msdf-atlas-gen
mainThe framework uses msdf-atlas-gen to generate the default MSDF fonts. To generate a font atlas, you must provide a .ttf font file and specify the origin, image output path, and JSON output path.
Important Note on Glyph Overlaps: Many fonts contain overlapping or incorrect glyphs that can cause errors in the MSDF output. It is highly recommended to correct glyph overlaps using a tool like Font Forge before processing the font with msdf-atlas-gen to ensure a valid MSDF output.
./msdf-atlas-gen -font ./Roboto-Medium.ttf -yorigin top -imageout ./Compiled/Roboto.png -json ./Compiled/Roboto.json