fontlabapp.fontui.tglyph.TGlyph
TGlyph
Owned TGlyph window over font's glyph name on layer.
Source bases
Inherited member index
Source-proven inherited members; local declarations override these entries.
connect— defined byfontlabapp.fontui.lifecycle.Owned.connect
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 |
|---|---|---|---|
__init__ |
function | (self, font: Any, name: str | None=None, layer: str | None=None, parent: Any=None, *, controls: bool=True, la… |
<code>controls=False</code> hides the toolbar and help for embedding in a studio shell. |
choose_layer |
function | (self) -> None |
Layer selector changed: show the same glyph on the chosen layer. |
choose_name |
function | (self) -> None |
Glyph name field confirmed: show that glyph. |
close |
function | (self) -> None |
Stop following, drop the font, then disconnect everything owned. |
commit |
function | (self, edit: Edit | None) -> None |
Write <code>edit</code> once; on success record the echo, on failure show why and revert. |
fail |
function | (self, error: Exception) -> None |
Show <code>error</code> in the status line; the window stays usable. |
fit |
function | (self) -> None |
Fit the advance box and outline into the canvas. |
follow |
function | (self) -> None |
Follow callback: refresh unless the font still shows our own last write. |
follow_current |
function | (self) -> None |
Switch to FontLab's current glyph when it is in this font and differs. |
highlight |
function | (self, *, points: Any=(), segments: Any=(), anchors: Any=()) -> None |
Mark <code>points</code><code>/</code><code>segments</code><code> (</code><code>(contour, index)</code><code> keys) and </code><code>anchors</code> (names). |
hint_state |
function | (self) -> Any |
The hint state of the shown glyph on its layer (None without a checker or glyph). |
key_press |
function | (self, key: Any, modifiers: Any=0, auto_repeat: bool=False) -> bool |
Canvas keys: <code>+</code><code>/</code><code>-</code><code> zoom, </code><code>0</code> fits, space arms panning; never raise. |
key_release |
function | (self, key: Any, auto_repeat: bool=False) -> bool |
|
load |
function | (self, name: str | None, layer: str | None=None) -> None |
Show <code>name</code><code> (on </code><code>layer</code> when given), fitted, with no selection. |
move |
function | (self, x: float, y: float) -> None |
Mouse move: pan, preview a point drag (no write) or grow the rubber band. |
press |
function | (self, x: float, y: float, button: Any, modifiers: Any=0) -> None |
Mouse press: middle or space+left pans; left selects, drags or adds a pen point. |
refresh |
function | (self) -> None |
Re-read the shown glyph; keep zoom/pan, and the selection while the structure holds. |
release |
function | (self, x: float | None=None, y: float | None=None) -> None |
Mouse release: end a pan, a rubber band, or a drag (one write when it moved). |
set_follow |
function | (self, on: bool) -> None |
Start or stop following FontLab's current glyph. |
set_overlay |
function | (self, data: Any) -> None |
Draw <code>data</code><code> (a </code><code>GlyphData</code>) as a ghost outline behind the glyph; None clears it. |
set_tool |
function | (self, tool: str) -> None |
Switch between the <code>"select"</code><code> and </code><code>"pen"</code> tools. |
step |
function | (self, offset: int) -> None |
Show the glyph <code>offset</code> places away in the glyph order (Prev/Next). |
wheel |
function | (self, delta: float, x: float, y: float) -> None |
Wheel <code>delta</code> (eighths of a degree; 120 per notch) zooms about the cursor. |
zoom |
function | (self, factor: float, x: float | None=None, y: float | None=None) -> None |
Zoom by <code>factor</code><code> about canvas pixel </code><code>(x, y)</code> (default: the centre). |