fontlabapp.proof.text_holder.model
model
Independent Reza Text Holder workflow; literal Unicode editing, lazy Qt UI.
Original source has no declared licence; no original body is redistributed. See NOTICE. Native FontLab/PythonQt qualification remains pending.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
KEY |
attribute | ||
client_sizes |
function | (extra: tuple[int, int], saved_frame: tuple[int, int] | None) -> tuple |
Retain initial content500×400 but original NS frame min/max constraints. |
find_first |
function | (text: str, needle: str) -> tuple[int, int] | None |
Find from document start, preserving literal case and normalization. |
index_at |
function | (text: str, position: int) -> int |
Translate a Qt cursor boundary; refuse half of a surrogate pair. |
plan_replacement |
function | (text: str, needle: str, replacement: str, start: int, end: int) -> Replacement | None |
Replace all literal matches inside selection, or whole text if collapsed. |
show |
function | (*, path: Path | None=None, qt: Any=None) -> Any |
Open the owned floating editor; tests inject an explicit temporary path. |
utf16_units |
function | (text: str) -> int |
Count QString/QTextCursor code units, including non-BMP characters. |
window_origin |
function | (left: int, top: int, screen_height: int, frame_height: int) -> tuple[int, int] |
Map original Cocoa frame origin (0,500) to primary Qt logical coordinates. |