Skip to content

fontlabapp.guides.inspect.model

model

Guide calculations and preflight for the measured native dependency-history gap.

Keep imports independent of FontLab and Qt. The guide panels must refuse edits whose automatic dependants FontLab cannot restore in the same Undo operation.

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
GLYPH_GUIDE attribute
HORIZONTAL attribute
TITLE attribute
VECTOR attribute
VERTICAL attribute
add_guides function (package: Any, jobs: list[tuple[Any, Any, list]], title: str=TITLE) -> dict[str, int] Preflight and construct all guides before the original single Undo step.
affected_auto_layers function (records: tuple[tuple[str, bool, tuple[str, ...]], ...], targets: set[str]) -> list[str] Find automatic dependants, including chains through manual composites.
dependency_values function (package: Any) -> tuple[tuple[str, bool, tuple[str, ...]], ...] Read resolved components and auto roles from every registered glyph layer.
glyph_guides function (layer: Any) -> list[Any]
grid function (direction: int, origin: float, step: float, count: int) -> list[tuple[float, float, float, str]] Guide records (x, y, angle, name) of the grid; pure, no font access.
guide_record function (guide: Any) -> tuple[float, float, float, str] (x, y, angle in degrees, name) of an flGuideLine; x is 0 for horizontal, y for vertical guides.
new_guide function (values: tuple[float, float, float, str]) -> Any A glyph guide through (x, y) at angle degrees (0 horizontal, 90 vertical).
require_safe_targets function (package: Any, targets: set[str]) -> None Refuse the entire edit before history when native Undo cannot restore it.