Skip to main content

Module font_meta

Module font_meta 

Source
Expand description

Font face metadata extraction via rustybuzz::ttf_parser.

Reads the family name, weight, and style from a raw TTF/OTF byte slice without loading a full shaping engine. Used at project-load time to register asset-declared fonts in BytesFontProvider.

Structs§

FaceMetadata
Metadata extracted from a font face’s name and OS/2 tables.

Functions§

face_metadata
Extract FaceMetadata from raw font bytes at the given face index.