Skip to content

fontlabapp.studios.vertical_metrics.diagram · declarations 001

Back to fontlabapp.studios.vertical_metrics.diagram

BOTTOM_MARGIN module-attribute

BOTTOM_MARGIN

FIELDS module-attribute

FIELDS

FILL module-attribute

FILL

FOOT module-attribute

FOOT

HEAD module-attribute

HEAD

LABEL_GAP module-attribute

LABEL_GAP

LABEL_WIDTH module-attribute

LABEL_WIDTH

RIGHT_PAD module-attribute

RIGHT_PAD

SAMPLE module-attribute

SAMPLE

TOLERANCE module-attribute

TOLERANCE

TOP_MARGIN module-attribute

TOP_MARGIN

collect

collect(package: Any, masters: list[str]) -> tuple[dict[str, list[tuple[str, Any, float]]], float, list[str]]

Read the sample glyphs: ({master: [(name, path, advance)]}, widest line, notes).

frame

frame(width: float, height: float, metrics: list[dict[str, float]], sample_width: float) -> Frame

Fit all masters' metrics and the widest sample line into the widget.

The scale is the smaller of the height fit (all lines, the baseline and the margins) and the width fit (FILL of a column for the widest line). Vertical slack is split above and below.

line_start

line_start(area: Frame, line_width: float) -> float

Unit offset that centres a sample line of line_width units in a column.

master_metrics

master_metrics(package: Any, master: Any) -> Any

[(label, y)] vertical metrics of one master.

metrics_panel module-attribute

metrics_panel

near_misses

near_misses(points: Any, metrics: Any, tolerance: Any) -> Any

[(label, metric y, node x, node y)] for points with 0 < |y - metric| <= tolerance.

on_curve_points

on_curve_points(layer: Any) -> Any

[(x, y)] of the layer's own on-curve nodes with each shape's transform applied.

outline

outline(layer: Any) -> Any

The layer outline as one QPainterPath in font units; read in place.

read_metrics

read_metrics(package: Any, masters: list[str]) -> dict[str, dict[str, float]]

{master: {attribute: value}} from FontMetrics; never switches the master.

scan

scan(package: Any, names: Any, tolerance: Any) -> Any

[(glyph, master, metric label, metric y, node x, node y)].