fontlabapp.fontui.tglyph_model.TGlyphModel · declarations 001
Back to fontlabapp.fontui.tglyph_model.TGlyphModel
__post_init__
__post_init__() -> None
box
box() -> tuple[float, float, float, float]
The advance box (0..width, descender..ascender) united with the outline bounds.
fingerprint
fingerprint() -> str
Digest of the font as this window shows it, read fresh (for Echo).
fit
fit(width: float, height: float) -> None
glyph_order
glyph_order() -> list[str]
Glyph names in the font's glyph order, falling back to its keys.
layer
class-attribute
instance-attribute
layer: str | None
layers
layers() -> list[str]
load
load(name: str | None, layer: str | None = None) -> None
Show name (and layer when given): clear the selection and re-read.
read
read() -> None
Re-read metrics and the glyph; failures become status and no data.
refresh
refresh() -> bool
Re-read the same glyph; keep the selection while the point structure holds.
Return True when the structure changed (and the selection was cleared).
select_at
select_at(sx: float, sy: float, extend: bool = False) -> tuple[int, int] | None
Select the point under (sx, sy); extend toggles it. A miss clears unless extending.
selection
class-attribute
instance-attribute
selection: set[tuple[int, int]]
status
class-attribute
instance-attribute
status: str