Crate skrifa

source ·
Expand description

A robust, ergonomic, high performance crate for OpenType fonts.

Skrifa is a mid level library that provides access to various types of metadata contained in a font as well as support for loading glyph outlines.

It is described as “mid level” because the library is designed to sit above low level font parsing (provided by read-fonts) and below a higher level text layout engine.

See the readme for additional details.

Re-exports§

Modules§

  • Primary attributes typically used for font classification and selection.
  • Mapping of characters (codepoints, not graphemes) to nominal glyph identifiers.
  • Drawing color glyphs.
  • Basic representation of an in-memory font resource.
  • Helpers for selecting a font size and location in variation space.
  • Global font and glyph specific metrics.
  • Loading, scaling and hinting of glyph outlines.
  • Loads incremental font transfer https://w3c.github.io/IFT/Overview.html patch mappings.
  • Useful collection of common types suitable for glob importing.
  • Definitions for specifying variations and typographic features.
  • Localized strings describing font names and other metadata.

Structs§

Traits§