fontlab.flCanvas · declarations 002
highlight
highlight(arg0: QRectF) -> Any
highlight(QRectF)
Highlights a rectangular region of the canvas with a visual indicator — useful for drawing attention to a specific area.
Source: FontLab Proteus API documentation
hovered
instance-attribute
hovered: Any
bool
hoveredItem
hoveredItem() -> flVisualItem
flVisualItem hoveredItem()
Returns the visual item the cursor is currently hovering over.
Source: FontLab Proteus API documentation
instanceAcceptEvents
instanceAcceptEvents() -> int
int instanceAcceptEvents()
instanceType
instanceType() -> int
int instanceType()
Returns the canvas type code.
Source: FontLab Proteus API documentation
invertSelectedNodes
invertSelectedNodes(*args: Any, **kwargs: Any) -> Any
invertSelectedNodes(QList
Inverts the selection state for the given nodes (selected becomes unselected, and vice versa).
Source: FontLab Proteus API documentation
invselect
invselect() -> Any
invselect()
isActiveCanvas
isActiveCanvas() -> bool
bool isActiveCanvas()
Returns True if this is the currently active canvas.
Source: FontLab Proteus API documentation
isFocusedCanvas
isFocusedCanvas() -> bool
bool isFocusedCanvas()
Returns True if this canvas has keyboard focus.
Source: FontLab Proteus API documentation
isSelectable
isSelectable() -> bool
bool isSelectable()
isStableSelect
isStableSelect() -> bool
bool isStableSelect()
itemScale
itemScale() -> float
double itemScale()
locked
instance-attribute
locked: Any
bool
mapCanvasDistanceToItem
mapCanvasDistanceToItem(arg0: QPointF) -> QPointF
QPointF mapCanvasDistanceToItem(QPointF)
mapCanvasToItem
mapCanvasToItem(QRectF: Any) -> Any
QPointF | QRectF mapCanvasToItem(QPointF | QRectF)
mapDeltaFromGlobalToCanvas
mapDeltaFromGlobalToCanvas(arg0: QPoint) -> QPointF
QPointF mapDeltaFromGlobalToCanvas(QPoint)
Converts a pixel delta (a movement amount) from global screen space to canvas-space units.
Source: FontLab Proteus API documentation
mapFromGlobal
mapFromGlobal(QPoint: Any) -> Any
QRectF | QPointF mapFromGlobal(QRect | QPoint)
Converts from global screen coordinates to canvas coordinates.
Source: FontLab Proteus API documentation
mapFromViewport
mapFromViewport(QPoint: Any) -> Any
QRectF | QLineF | QPointF mapFromViewport(QRectF | QRect | QLineF | QPointF | QPoint)
Converts from viewport (screen pixel) to canvas coordinates.
Source: FontLab Proteus API documentation
mapItemToCanvas
mapItemToCanvas(QRectF: Any) -> Any
QPointF | QRectF mapItemToCanvas(QPointF | QRectF)
mapToGlobal
mapToGlobal(arg0: QPointF) -> QPointF
QPointF mapToGlobal(QPointF)
Converts from canvas coordinates to global screen coordinates.
Source: FontLab Proteus API documentation
mapToViewport
mapToViewport(QPoint: Any) -> Any
QPolygonF | QRect | QPoint mapToViewport(QPolygonF | QRect | QPoint)
Converts from canvas (glyph-space, transformed) to viewport (screen pixel) coordinates.
Source: FontLab Proteus API documentation
mapToViewportF
mapToViewportF(QLineF: Any) -> Any
QPointF | QLineF mapToViewportF(QPointF | QLineF)
Float-precision version of mapToViewport.
Source: FontLab Proteus API documentation
metricStep
metricStep() -> float
double metricStep()
modelProducer
instance-attribute
modelProducer: Any
flModelProducer
The producer object that controls what this canvas shows — the connection between the canvas and the font data.
Source: FontLab Proteus API documentation
mousePosition
mousePosition() -> QPointF
QPointF mousePosition()
Returns the current mouse cursor position in canvas (screen pixel) coordinates. Combine with canvasToGlyph() to get the glyph-unit position.
Source: FontLab Proteus API documentation
mousePressed
mousePressed() -> bool
bool mousePressed()
Returns True if a mouse button is currently pressed.
Source: FontLab Proteus API documentation
move
move(arg0: QPointF) -> None
void move(QPointF)
opacity
instance-attribute
opacity: Any
double
operationAdjustMetrics
operationAdjustMetrics(delta: float, percent: bool) -> Any
operationAdjustMetrics(double delta, bool percent)
Nudges the sidebearings by delta — absolute units if percent=False, percentage if percent=True.
Source: FontLab Proteus API documentation
operationAlign
operationAlign(*args: Any, **kwargs: Any) -> Any
operationAlign(Qt::Alignment)
Aligns selected items (left, right, top, bottom, center).
Source: FontLab Proteus API documentation
operationBeauty
operationBeauty(bool: Any) -> Any
operationBeauty(bool)
Applies G2 harmonisation (beauty) to the selection.
Source: FontLab Proteus API documentation
operationBreak
operationBreak(notify: bool, alone_selected: bool) -> bool
bool operationBreak(bool notify, bool alone_selected)
Breaks open the selected contour(s) at the selected nodes — useful for creating open paths.
Source: FontLab Proteus API documentation
operationCopyToMask
operationCopyToMask(*args: Any, **kwargs: Any) -> Any
operationCopyToMask(bool global = false)
Copies the current selection to the mask layer. Set global=True to copy to the global mask.
Source: FontLab Proteus API documentation
operationDecompose
operationDecompose() -> bool
bool operationDecompose()
Decomposes composite glyphs (components) into plain contours.
Source: FontLab Proteus API documentation
operationFlipHorizontal
operationFlipHorizontal() -> Any
operationFlipHorizontal()
Flips the current selection horizontally (mirror left/right).
Source: FontLab Proteus API documentation
operationFlipVertical
operationFlipVertical() -> Any
operationFlipVertical()
Flips the current selection vertically (mirror up/down).
Source: FontLab Proteus API documentation
operationGenius
operationGenius(bool: Any) -> Any
operationGenius(bool)
Toggles Genius mode on/off for the selection.
Source: FontLab Proteus API documentation
operationHarmonize
operationHarmonize() -> Any
operationHarmonize()
Smooths G2 continuity on selected nodes — makes curve transitions more mathematically smooth.
Source: FontLab Proteus API documentation
operationImprove
operationImprove() -> Any
operationImprove()
Runs the "improve" (beautify) operation on selected nodes.
Source: FontLab Proteus API documentation
operationJoin
operationJoin() -> Any
operationJoin()
Joins open contour endpoints together.
Source: FontLab Proteus API documentation