Skip to main content

Crate typf_fontdb

Crate typf_fontdb 

Source
Expand description

Font loading and face management for Typf.

This crate turns raw font files into face objects that the rest of the pipeline can query. It keeps the original bytes in memory and creates parser views on demand, which is important for two reasons:

  • it avoids leaking long-lived parser objects,
  • it supports collection files such as TTCs, where one file contains several faces and each face needs its own index.

Structsยง

FontDatabase
Collection of loaded font faces and their source metadata.
TypfFontFace
In-memory font face ready for shaping and rendering.
TypfFontSource
Source descriptor for one loaded font face.