Skip to content

fontlabapp.qt.views.GlyphWindow · declarations 001

Back to fontlabapp.qt.views.GlyphWindow

__init__

__init__(widget: Any, workspace: Any, owner: Any = None) -> None

canvas property

canvas: Any

draw

draw(callback: Callable[[Any], None], *, coordinates: str = 'pixels') -> Drawing

Paint over this one glyph window (pixels or canvas units).

For painters called once per laid-out glyph with a glyph-to-canvas map, over all glyph windows, use fontlabapp.qt.painting.editor.

from_pixels

from_pixels(x: float, y: float) -> Any

pan_to

pan_to(x: float, y: float) -> GlyphWindow

to_pixels

to_pixels(x: float, y: float) -> Any

zoom property

zoom: float

zoom_to

zoom_to(scale: float, center: Any = None) -> GlyphWindow