Skip to content

fontlabapp.fontui.tglyph · declarations 001

Back to fontlabapp.fontui.tglyph

COLORS module-attribute

COLORS

DELETE_KEYS module-attribute

DELETE_KEYS

FIT_KEYS module-attribute

FIT_KEYS

FOLLOW_LABEL module-attribute

FOLLOW_LABEL

FOLLOW_POLL_MS module-attribute

FOLLOW_POLL_MS

HANDLE_SIZE module-attribute

HANDLE_SIZE

HELP_TEXT module-attribute

HELP_TEXT

HIGHLIGHT_KINDS module-attribute

HIGHLIGHT_KINDS

NO_FONT_MESSAGE module-attribute

NO_FONT_MESSAGE

NUDGE_KEYS module-attribute

NUDGE_KEYS

NUDGE_SHIFT module-attribute

NUDGE_SHIFT

POINT_SIZE module-attribute

POINT_SIZE

START_SIZE module-attribute

START_SIZE

TITLE module-attribute

TITLE

TOOL_KEYS module-attribute

TOOL_KEYS

ZOOM_KEYS module-attribute

ZOOM_KEYS

create_canvas

create_canvas(owner: TGlyph, parent: Any) -> Any

Return the TGlyph canvas widget; it paints and forwards input to owner.

current_glyph_name

current_glyph_name(font: Any) -> str | None

Name of FontLab's current glyph when font has it; None otherwise or offline.

Uses fontlabapp.contours.nodes.coordinates.current_glyph (FontLab's CurrentGlyph() of the active window), reading only the glyph's name.

paint

paint(owner: TGlyph, canvas: Any) -> None

Paint metrics, advance box, components, outline, handles, points and anchors; never raise.

show_tglyph

show_tglyph(font: Any = None, name: str | None = None, layer: str | None = None, *, parent: Any = None) -> TGlyph | None

Open TGlyph over font's name on layer and return it.

Defaults: FontLab's current font, its current glyph (else the first glyph) and the default layer. Returns None, after a message, when no font is open or Fontport cannot resolve one.