fontlab_fontport.recipes · declarations 001
Back to fontlab_fontport.recipes
bounds
bounds(glyph, glyph_set=None)
control_bounds
control_bounds(glyph, glyph_set=None)
FontLab boundingBox includes off-curve controls, not just curve extrema.
digest
digest(glyph)
flatten
flatten(font, source, destination, *, approximate_segment_length=10)
Commit once on the integer grid; <=0.5-unit error per coordinate.
Uses fontTools otRound (nearest integer, ties toward positive infinity). Width is preserved. Curves/components are flattened before rounding.
parse_features
parse_features(text, glyph_names, *, classes=None)
Parse native code with separate native OT classes; never mutate code.
Group names/members are glyph-name tokens accepted by feaLib. Errors and unsupported syntax propagate with source locations, not a fake success.
transform_into
transform_into(font, source, destination, transformation)