Skip to content

fontlabapp.fontui.twindow_host.Host · declarations 001

Back to fontlabapp.fontui.twindow_host.Host

read_text

read_text() -> str | None

Return available literal text, or None without an accessible target.

subscribe

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

Attach notifications and polling to the window's owned lifetime.

Font changes call callback; a host-text change calls text_callback (default: callback).

write_text

write_text(text: str) -> bool

Write available literal text; False means the target is inaccessible.