packages feed

msdf-atlas-0.1.1.0: README.md

# msdf-atlas
![Hackage Version](https://img.shields.io/hackage/v/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 `capsHeight` metric: https://github.com/dpwiz/msdf-atlas-gen/tree/v1.13%2Bcapsheight
  - A new field is `"sizeUnit": "capsHeight"`, indicating that `size` is not EMs and you don't have to convert.

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.