@hackage msdf-atlas0.1.1.0
Types and parser for the MSDF atlas layout
Categories
License
BSD-3-Clause
Maintainer
aenor.realm@gmail.com
Links
Versions
Installation
Dependencies (5)
Dependents (1)
@hackage/ktx-font
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.