Skip to content

fontlabapp.masters.text.ui · declarations 001

Back to fontlabapp.masters.text.ui

custom_text

custom_text(editor: Any, check: Callable) -> str

Read source's single-line custom field without Qt plaintext folding.

QTextBlock.text preserves NBSP/LS; QTextDocument.characterCount counts UTF16 units plus its final paragraph mark. Refuse paragraphs and mismatched getter lengths (native NUL truncation), never accept a silently changed run. Physical multiline/PS custom input is held; UTF8 presets carry exact scalars.

panel_type

panel_type(core: Any, gui: Any) -> type

Bind lazily; tests inject real isolated Qt and an owned settings store.