Skip to content

fontlabapp.fontui.teaching_writers.stem_blend · declarations 001

Back to fontlabapp.fontui.teaching_writers.stem_blend

Contour module-attribute

Contour

Contours module-attribute

Contours

TITLE module-attribute

TITLE

blend_contours

blend_contours(first: Contours, second: Contours, stems: tuple[float, float, float, float], target: tuple[float, float], scales: tuple[float, float], angle: float) -> Contours

Use independent measured-stem fractions; never change source coordinates.

capture_pair

capture_pair(first: str, second: str) -> tuple[str, Contours, Contours]

Read both source layers twice and refuse a changed current font or glyph.

checked_layer_name

checked_layer_name(name: str, masters: tuple[str, ...]) -> str

Refuse native recipe, master and temporary-layer naming syntax.

contour_parts

contour_parts(contour: Contour) -> tuple[bool, list[Point], bool]

Read an explicit TT flag; older detached cubic inputs default to cubic.

create_layer

create_layer(plan: dict[str, Any], *, disclosure: dict[str, Any] | None = None) -> str

Create one layer through App history and settle; reject stale or unsafe previews.

current_context

current_context() -> tuple[Any, Any]

Resolve an owned current glyph without reading native FontGate caches.

export_new

export_new(filename: str, content: str) -> None

Write one detached SVG artifact; refuse overwriting an existing file.

main

main() -> None

Use the existing FontLab application and main window.

numbers

numbers(text: str, count: int) -> tuple[float, ...]

Parse the exact count of space-separated finite numeric controls.

path_text

path_text(closed: bool, points: list[Point], tt: bool = False) -> str

Serialize complete paths; refuse malformed control runs instead of dropping nodes.

prepare_blend

prepare_blend(first: str, second: str, stems: tuple, target: tuple, scales: tuple, angle: float) -> dict[str, Any]

Bind a detached outline preview to its exact font, glyph, layers and advance.

read_contours

read_contours(layer: Any, deadline: float) -> Contours

Read plain contour shapes with a deadline; refuse geometry that needs flattening.

show

show(qt: Any, parent: Any, *, embedded: bool = False) -> Any

Show repeatable blend controls; keep SVG detached and invalidate on edits.

source_options

source_options() -> tuple[list[str], float]

Offer current-glyph layer names and the current master's rightward slant.

svg_text

svg_text(label: str, contours: Contours) -> str

Keep font-unit coordinates and invert SVG y exactly once.