Skip to content

fontlabapp.metrics.zones.guide_prepare · declarations 001

Back to fontlabapp.metrics.zones.guide_prepare

claim

claim(native: Any, value: Any, protected: set[int], seen: set[int]) -> Any

Reject known source/reused IDs before modifying any decoded guide.

decoder

decoder(native: Any) -> Callable

Require the source-verified one-argument QByteArray decoder declaration.

identities

identities(guide: Any) -> tuple[int, ...]

Read known root/node/marker IDs, without reflecting arbitrary properties.

matches

matches(guide: Any, row: WriteRow) -> bool

Refuse constraints, rounding or kind changes before returning prepared data.

new

new(native: Any, qt: Any, row: WriteRow, protected: set[int], seen: set[int]) -> Any

Use the actual four-position constructor and native enum dictionaries.

set_visible

set_visible(guide: Any, qt: Any, values: tuple) -> None

Change owned center/width/name only, retaining its other native fields.

unpack

unpack(native: Any, qt: Any, method: Callable, payload: bytes, protected: set[int], seen: set[int]) -> Any

Decode one original native root; do not parse/rewrite the binary format.

visible

visible(guide: Any) -> tuple[float, float, float, str]

Copy only the explicitly edited native fields; keep raw values exact.