Skip to content

fontlabapp.contours.nodes_near_zones.model

model

Nodes Near Zones: on-curve nodes just off a vertical metric line.

scan reads the named glyphs on every master and lists each on-curve node whose height is within tolerance units of, but not on, baseline, x-height, cap height, ascender or descender. Nothing is written.

Classes

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
DEFAULT_TOLERANCE attribute
HEADER attribute
near_misses function (points: list, zone_list: tuple, tolerance: float) -> list <code>(label, zone y, x, y)</code><code> where </code><code>0 &lt; &#124;y - zone y&#124; &lt;= tolerance</code>.
on_curve_points function (layer: Any, point_type: Any) -> list On-curve node positions of the layer's own shapes; <code>point&#95;type</code> is QPointF.
render function (report: NodesNearZonesReport) -> str Tab-separated table with the signed offset of each node.
scan function (package: Any, names: list, tolerance: float, metrics_of: Any, point_type: Any) -> tuple Rows <code>(glyph, master, zone, zone y, x, y)</code><code>; </code><code>metrics&#95;of(master)</code> gives metrics.
summary function (report: NodesNearZonesReport) -> str One-line result for the status bar.
zones function (metrics: Any) -> tuple Named vertical zones for one master's metrics.