Skip to content

fontlabapp.studios.hint_tools.autohint · declarations 001

Back to fontlabapp.studios.hint_tools.autohint

KEY module-attribute

KEY

TITLE module-attribute

TITLE

autohint

autohint(rows: Sequence[Row], facts: Any, allow_bases: bool) -> dict[str, Any]

Autohint every planned layer as ONE Undo step.

Return {"layers", "glyphs", "after", "mismatches"}. after maps (glyph, master) to the new hint counts. Read-back reports outlined layers with no hints. Nothing to do returns zeros and makes no history call.

has_outline

has_outline(layer: Any) -> bool

True when layer holds contours outside components.

layer_note

layer_note(layer: Any, reason: str) -> str

Return why layer is not hinted, or "" when it can be.

survey

survey(package: Any, names: Sequence[str], masters: Sequence[str], facts: Any, allow_bases: bool) -> list[Row]

Plan every glyph/master. Change nothing.