Skip to content

fontlabapp.proof.inspectors.model · declarations 001

Back to fontlabapp.proof.inspectors.model

all_names

all_names(package: Any = None) -> list[str]

Keep the original package argument while sharing ordered Font-window reads.

contour_info

contour_info(layer: Any) -> Any

[(index, points, start (x, y), next point (x, y), 'ccw'|'cw')] for the layer's own contours.

glyph_counts

glyph_counts(glyph: Any, masters: Any) -> Any

Read present masters only; preserve None for automatic layers.

incompatible

incompatible(counts: Any) -> Any

Flag differing real contour/node counts, ignoring auto and missing layers.

layer_counts

layer_counts(layer: Any) -> Any

(contours, nodes) drawn in the layer, or None for an auto layer.

layout

layout(package: Any, names: Any, master: Any) -> Any

[(name, x, advance, lsb, rsb)]: pen positions along the line, in font units.

outline

outline(layer: Any) -> Any

Reuse actual transformed closed/open outlines, including component geometry.

outline_source

outline_source(layer: Any) -> tuple

Snapshot transformed raw nodes and closure, without native wrapper equality.

Shared Masters geometry reads include transformed components. Plain values keep repaint source checks independent of PythonQt value-object identity.

parse_text

parse_text(text: Any, package: Any) -> Any

Glyph names for the text: characters by Unicode, '/name' tokens by name (ended by space or '/').

progression

progression(values: Any) -> str

'rising', 'falling', 'flat' or 'mixed' for a list of widths (None ignored).

report

report(glyphs: Any, masters: Any) -> Any

[(name, [widths], progression)] for the glyphs, in the given order.

signed_area

signed_area(points: Any) -> Any

Return the signed area of the raw node polygon, including controls.

widths

widths(glyph: Any, masters: Any) -> Any

[width or None] in master order.