Skip to content

fontlabapp.proof.inspectors.model

model

Read-only metrics and raw contour inspectors adapted from fontlab-samples.

Keep missing/auto and winding semantics exact. Native APIs load lazily; reads never touch flGlyph.fgGlyph or notify font/history changes.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
all_names function (package: Any=None) -> list[str] Keep the original package argument while sharing ordered Font-window reads.
contour_info function (layer: Any) -> Any [(index, points, start (x, y), next point (x, y), 'ccw'|'cw')] for the layer's own contours.
glyph_counts function (glyph: Any, masters: Any) -> Any Read present masters only; preserve None for automatic layers.
incompatible function (counts: Any) -> Any Flag differing real contour/node counts, ignoring auto and missing layers.
layer_counts function (layer: Any) -> Any (contours, nodes) drawn in the layer, or None for an auto layer.
layout function (package: Any, names: Any, master: Any) -> Any [(name, x, advance, lsb, rsb)]: pen positions along the line, in font units.
outline function (layer: Any) -> Any Reuse actual transformed closed/open outlines, including component geometry.
outline_source function (layer: Any) -> tuple Snapshot transformed raw nodes and closure, without native wrapper equality.
parse_text function (text: Any, package: Any) -> Any Glyph names for the text: characters by Unicode, '/name' tokens by name (ended by space or '/').
progression function (values: Any) -> str 'rising', 'falling', 'flat' or 'mixed' for a list of widths (None ignored).
report function (glyphs: Any, masters: Any) -> Any [(name, [widths], progression)] for the glyphs, in the given order.
signed_area function (points: Any) -> Any Return the signed area of the raw node polygon, including controls.
widths function (glyph: Any, masters: Any) -> Any [width or None] in master order.