fontlabapp.fontui.tmetrics · declarations 001
Back to fontlabapp.fontui.tmetrics
BEARING_TICK
module-attribute
BEARING_TICK
COLORS
module-attribute
COLORS
DIRECTION_LABELS
module-attribute
DIRECTION_LABELS
HELP_TEXT
module-attribute
HELP_TEXT
KEY_STEPS
module-attribute
KEY_STEPS
NO_FONT_MESSAGE
module-attribute
NO_FONT_MESSAGE
NO_PAIR_MESSAGE
module-attribute
NO_PAIR_MESSAGE
NUDGE_KEYS
module-attribute
NUDGE_KEYS
READ_ONLY_MESSAGE
module-attribute
READ_ONLY_MESSAGE
SHIFT_FACTOR
module-attribute
SHIFT_FACTOR
TITLE
module-attribute
TITLE
create_canvas
create_canvas(owner: TMetrics, parent: Any) -> Any
Return the TMetrics canvas widget; it paints and forwards input to owner.
open_tglyph
open_tglyph(window: TMetrics, name: str) -> Any
Show name of window.font in TGlyph, reusing the window's open TGlyph.
The TGlyph window is kept on window.tglyph so PythonQt does not collect
it; a closed one is replaced. TGlyph is imported here, not at module load.
paint
paint(owner: TMetrics, canvas: Any) -> None
Paint guides, boxes, bearings, kerning, selection and outlines; never raise.
show_tmetrics
show_tmetrics(font: Any = None, text: str | None = None, *, parent: Any = None, on_open_glyph: Any = None) -> TMetrics | None
Open TMetrics over font (default: FontLab's current font) and return it.
Returns None, after a message, when no font is open or Fontport cannot resolve one.