Description
Types and parser for the MSDF atlas layout.
README.md
msdf-atlas
Structures and aeson parsers for glyph atlases.
You may not want this when working with libfreetype/TTFs directly, but it can be useful for pre-rendered bitmap/sdf fonts.
Compatible generators:
- original: https://github.com/Chlumsky/msdf-atlas-gen
- modded to support
capsHeightmetric: https://github.com/dpwiz/msdf-atlas-gen/tree/v1.13%2Bcapsheight- A new field is
"sizeUnit": "capsHeight", indicating thatsizeis not EMs and you don't have to convert.
- A new field is
The package also provides a compacted representation of the atlas which boils down to a pair of storable vectors of boxes (and some metadata). This allows you to e.g. upload them to GPU and shuttle just glyph ids and styles when rendering.