Skip to content

fontlabapp.fontui.twindow_host.FontLabHost · declarations 001

Back to fontlabapp.fontui.twindow_host.FontLabHost

__init__

__init__(font: Any, native: Any = None) -> None

read_text

read_text() -> str | None

Read exact Unicode scalars; never infer text from rendered glyph names.

subscribe

subscribe(owner: Any, callback: Callable, fonts: Callable, text_callback: Callable | None = None) -> None

Use existing font/history hooks; poll text because typing emits no history.

A text change calls text_callback (default: callback).

write_text

write_text(text: str) -> bool

Replace only this font's captured active literal-text block and verify it.