Cargo Features

[dependencies]
ab_glyph = { version = "0.2.29", default-features = false, features = ["std", "libm", "variable-fonts"] }

don't add any, instead use ./dev

default = std, variable-fonts

These default features are set whenever ab_glyph is added without default-features = false somewhere in the dependency tree.

std default

Activates usage of std.

Enables ab_glyph_rasterizer and owned_ttf_parser

libm

Uses libm when not using std. This needs to be active in that case.

Enables libm of ab_glyph_rasterizer, no-std-float of owned_ttf_parser and libm

no_std float stuff

variable-fonts default

Enables variable-fonts of owned_ttf_parser

owned_ttf_parser:

Enables variable fonts support. Increases binary size almost twice.
Includes avar, CFF2, fvar, gvar, HVAR, MVAR and VVAR tables.