Skip to content

fontlabapp.studios.shape_generators.myanmar · declarations 001

Back to fontlabapp.studios.shape_generators.myanmar

KEY module-attribute

KEY

PIECES module-attribute

PIECES

TITLE module-attribute

TITLE

VARIANTS module-attribute

VARIANTS

consonant_widths

consonant_widths(package: Any, records: list[Any]) -> tuple[list[tuple[str, float]], list[RaRow]]

Read named current-master advances; retain invalid consonants as kept rows.

default_source

default_source(records: list[Any]) -> str

Use the encoded medial ra when the selection is not one template glyph.

fitted_bounds

fitted_bounds(contours: list[Any], variant: str, extension: float) -> tuple[float, float, float, float]

Envelope of all fitted nodes and handles, for the pre-write table.

main

main() -> Any

Open or replace the owned generator panel.

master_extension

master_extension(package: Any, master: str, members: tuple[str, ...], enclosure: float) -> float

Mean advance of the same consonant members, minus this master's enclosure.

panel_type

panel_type() -> type

Use the shared non-modal creation panel, with a complete multi-master preview.

piece_indices

piece_indices(variant: str) -> list[int]

Choose the stem, rails and hooks present in an omission variant.

piece_points

piece_points(points: list[tuple[float, float]], piece: int, extension: float) -> list[tuple[float, float]]

Stretch closing-edge endpoints and move hook bodies on detached copies.

point_bounds

point_bounds(points: list[tuple[float, float]]) -> tuple[float, float, float, float]

Return bounds of nodes and handles, a conservative contour envelope.

prepare

prepare(rows: list[RaRow]) -> list[Any]

Prepare every master on detached contours before any Add Glyph command.

preview_key

preview_key(rows: list[RaRow]) -> tuple[Any, ...]

Immutable target and source values that the user saw before Apply.

stem_measure

stem_measure(contour: Any) -> float

Distance between the two longest distinct vertical straight edges.

survey

survey(package: Any, source: str, records: list[Any], count: int, facts: Any, consent: bool) -> list[RaRow]

Plan each target on every master. One failed master keeps the whole target.

template_contours

template_contours(layer: Any) -> tuple[list[Any], float]

Copy five contours, verify piece roles and stretch sides, measure enclosure.

width_classes

width_classes(values: list[float], count: int) -> list[int]

Return the rounded names of the width groups.

width_groups

width_groups(values: list[tuple[str, float]], count: int) -> list[tuple[int, tuple[str, ...]]]

Optimal contiguous groups, preserving glyph identities and multiplicities.

Names use means floored to tens. Groups with the same rounded name merge their members so that the target is unique. Other masters reuse these memberships; they do not regroup by their own advances.