fontlab.flCanvas · declarations 003
operationNoServant
operationNoServant() -> Any
operationNoServant()
Removes servant (symmetry) constraints from selected nodes.
Source: FontLab Proteus API documentation
operationPrepare
operationPrepare(*args: Any, **kwargs: Any) -> Any
(flModelProducer, QList
Prepares an operation context, returning a tuple of (producer, selected nodes, active shape, active glyph). Used internally before edit operations. Returns None if no valid selection exists.
Source: FontLab Proteus API documentation
operationReverseContours
operationReverseContours() -> Any
operationReverseContours()
Reverses the direction of selected contours (clockwise becomes counter-clockwise).
Source: FontLab Proteus API documentation
operationRotate180
operationRotate180() -> Any
operationRotate180()
Rotates the selection 180 degrees.
Source: FontLab Proteus API documentation
operationRotate90
operationRotate90() -> Any
operationRotate90()
Rotates the selection 90 degrees clockwise.
Source: FontLab Proteus API documentation
operationServantX
operationServantX(bool: Any) -> Any
operationServantX(bool)
Toggles the X-axis servant (symmetry) constraint.
Source: FontLab Proteus API documentation
operationServantY
operationServantY(bool: Any) -> Any
operationServantY(bool)
Toggles the Y-axis servant (symmetry) constraint.
Source: FontLab Proteus API documentation
operationSetMetrics
operationSetMetrics(mode: int) -> Any
operationSetMetrics(int mode)
Applies a metrics preset to the current glyph.
Source: FontLab Proteus API documentation
operationSimplify
operationSimplify() -> Any
operationSimplify()
Simplifies the selected contours by removing redundant nodes.
Source: FontLab Proteus API documentation
operationSmartAngle
operationSmartAngle(bool: Any) -> Any
operationSmartAngle(bool)
Toggles smart angle mode for the selection.
Source: FontLab Proteus API documentation
operationSmooth
operationSmooth(bool: Any) -> Any
operationSmooth(bool)
Toggles smooth node mode.
Source: FontLab Proteus API documentation
operationToBeziers
operationToBeziers() -> Any
operationToBeziers()
Converts the current selection to cubic Bézier curves (PostScript-style).
Source: FontLab Proteus API documentation
operationToCurve
operationToCurve() -> Any
operationToCurve()
Converts selected nodes to smooth curve nodes.
Source: FontLab Proteus API documentation
operationToLine
operationToLine() -> Any
operationToLine()
Converts selected nodes to sharp corner nodes with straight segments.
Source: FontLab Proteus API documentation
operationToSplines
operationToSplines() -> Any
operationToSplines()
Converts the selection to quadratic splines (TrueType-style).
Source: FontLab Proteus API documentation
owner
instance-attribute
owner: Any
flVisualItem
paint
paint(*args: Any, **kwargs: Any) -> Any
void paint(QPainter*)
paper
instance-attribute
paper: Any
flPaper
The canvas background ("paper") settings — background colour, guides display, etc.
Source: FontLab Proteus API documentation
placeAICB
placeAICB(position: QPointF, mime_data: Any) -> bool
bool placeAICB(QPointF position, QString filename | QMimeData mime_data)
Places artwork from an Adobe Illustrator clipboard file or MIME data at the given canvas position.
Source: FontLab Proteus API documentation
placeArtwork
placeArtwork(position: QPointF, urls_list: list[QUrl]) -> bool
bool placeArtwork(QPointF position, QList
Places artwork from a list of file URLs at the given canvas position.
Source: FontLab Proteus API documentation
popupHost
popupHost() -> Any
YPopupHost* popupHost()
The popup host widget for this canvas (used for context menus and floating panels).
Source: FontLab Proteus API documentation
preview
preview() -> Any
preview()
producer
producer() -> flObject
flObject producer()
Returns the model producer controlling what this canvas displays.
Source: FontLab Proteus API documentation
rectToUpdate
rectToUpdate() -> QRect
QRect& rectToUpdate()
The rectangle scheduled for the next update.
Source: FontLab Proteus API documentation
referencePoint
referencePoint() -> QPointF
QPointF referencePoint()
refresh
refresh() -> Any
refresh()
Redraws the current view. Use this as a general "please redraw" after making edits.
Source: FontLab Proteus API documentation
refreshAll
refreshAll() -> Any
refreshAll()
Full redraw of the entire canvas — clears all cached rendering and redraws from scratch. Slower than refresh(), but guarantees a clean state.
Source: FontLab Proteus API documentation
refreshCanvasRect
refreshCanvasRect(arg0: QRectF) -> Any
refreshCanvasRect(QRectF)
Invalidates a specific rectangle in canvas (screen pixel) coordinates.
Source: FontLab Proteus API documentation
refreshGlyphRect
refreshGlyphRect(arg0: QRectF) -> Any
refreshGlyphRect(QRectF)
Invalidates a specific rectangle in glyph coordinates. Only that region will be redrawn. Efficient when you've only changed a small area.
Source: FontLab Proteus API documentation
regionToUpdate
regionToUpdate() -> QRegion
QRegion& regionToUpdate()
The region scheduled for the next update.
Source: FontLab Proteus API documentation
removeDeadSmartAngles
removeDeadSmartAngles() -> Any
removeDeadSmartAngles()
Removes invalidated smart angle markers from the canvas.
Source: FontLab Proteus API documentation
removeItem
removeItem(arg0: flVisualItem) -> Any
removeItem(flVisualItem)
Removes a visual item from the canvas.
Source: FontLab Proteus API documentation
removePythonPainter
removePythonPainter(token: Any) -> bool
removePythonPainter(token) -> bool
removeTextBlock
removeTextBlock(arg0: flTextBlock) -> Any
removeTextBlock(flTextBlock)
Removes a text block from the canvas.
Source: FontLab Proteus API documentation
removedFromCanvas
removedFromCanvas() -> Any
removedFromCanvas()
removedFromWorkspace
removedFromWorkspace(arg0: flWorkspace) -> Any
removedFromWorkspace(flWorkspace)
Called when this canvas is removed from the workspace.
Source: FontLab Proteus API documentation
resetHighlight
resetHighlight() -> Any
resetHighlight()
Removes the current highlight.
Source: FontLab Proteus API documentation
scale
scale() -> float
double scale()
Returns the current zoom scale factor as a number. A value of 1.0 means 100% zoom; 2.0 means 200%, and so on.
Source: FontLab Proteus API documentation
scaled
scaled(d: float) -> float
double scaled(double d)
Scales a canvas-space value by the current zoom factor. For example, canvas.scaled(1.0) tells you how many canvas pixels correspond to one font unit at the current zoom.
Source: FontLab Proteus API documentation