Skip to content

fontlabapp.studios.vertical_metrics.diagram.Diagram · declarations 001

Back to fontlabapp.studios.vertical_metrics.diagram.Diagram

__init__

__init__(owner: Any) -> None

Keep the owner panel, which holds the data to draw.

draw

draw(painter: Any, width: float, height: float) -> None

Paint the background, then every master column.

draw_column

draw_column(painter: Any, area: Frame, index: int, master: str, ink: Any, guide: Any) -> None

Master name, metric lines, the sample outlines; line names in column 0.

draw_labels

draw_labels(painter: Any, labels: list[tuple[float, str]]) -> None

Line names right-aligned in the margin, pushed apart when lines are close.

paintEvent

paintEvent(event: Any) -> None

Draw. An error is kept, never raised; the painter always ends.