Skip to content

fontlab.flTextBlock · declarations 001

Back to fontlab.flTextBlock

activeObjectChanged

activeObjectChanged() -> flNotifier

flNotifier activeObjectChanged()

activeRowRect

activeRowRect() -> QRectF

QRectF activeRowRect()

addFeature

addFeature(feature: str) -> Any

addFeature(QString feature)

charsCount

charsCount() -> int

int charsCount()

createInstance

createInstance() -> flTextBlock

flTextBlock createInstance()

Creates a new detached flTextBlock. You must call init(canvas) to attach it to a canvas before using it. Detached text blocks are useful for computing layout outside of a display context.

Source: FontLab Proteus API documentation

drawContent

drawContent(*args: Any, **kwargs: Any) -> Any

drawContent(QPainter*, flCanvas, QRectF painted_nodes_screen_rect)

editMode instance-attribute

editMode: Any

EditMode

The current editing mode. Read to check the current mode; write to switch modes.

Source: FontLab Proteus API documentation

features

features() -> Any

list(QString) features()

fontSize instance-attribute

fontSize: Any

int

The display size in pixels. Larger values zoom the text. Does not change the font's unit size — only the rendering scale.

Source: FontLab Proteus API documentation

formatChanged

formatChanged() -> flNotifier

flNotifier formatChanged()

formatMode instance-attribute

formatMode: Any

int

The text format mode: 0 = plain (no styled formatting), 1 = styled (allows per-character formatting).

Source: FontLab Proteus API documentation

frameRect instance-attribute

frameRect: Any

QRectF

The frame rectangle for word-wrapped text. Only used in frame mode (see setFrameSize).

Source: FontLab Proteus API documentation

getActiveGlyph

getActiveGlyph() -> Any

flGlyphInfo/Nothing getActiveGlyph()

getAllGlyphs

getAllGlyphs(line_index: Any = ...) -> Any

list(flGlyphInfo)/Nothing getAllGlyphs([int line_index = -1])

getCurrentPosition

getCurrentPosition() -> QPointF

QPointF getCurrentPosition()

getGlyphAt

getGlyphAt(glyph_index: int) -> Any

flGlyphInfo/Nothinf getGlyphAt(int glyph_index)

getGlyphInfo

getGlyphInfo(*args: Any, **kwargs: Any) -> Any

flGlyphInfo/Nothing getGlyphInfo(fgSymbol, &)

getGlyphTransform

getGlyphTransform(glyph_index: int) -> QTransform

QTransform getGlyphTransform(int glyph_index)

getGlyphsInLine

getGlyphsInLine(lineIndex: Any) -> Any

list(flGlyphInfo)/Nothing getGlyphsInLine(flGlyphInfo | int lineIndex)

getHitGlyph

getHitGlyph(canvas_pos: QPointF) -> Any

flGlyphInfo/Nothing getHitGlyph(QPointF canvas_pos)

getHitToShapeGlyph

getHitToShapeGlyph(canvas_pos: QPointF) -> Any

flGlyphInfo/Nothing getHitToShapeGlyph(QPointF canvas_pos)

getHitToShapes

getHitToShapes(canvas_pos: QPointF) -> Any

list(flContourInfo)/Nothing getHitToShapes(QPointF canvas_pos)

getIntersectsGlyphs

getIntersectsGlyphs(canvas_rect: QRectF) -> Any

list(flGlyphInfo)/Nothing getIntersectsGlyphs(QRectF canvas_rect)

getLineIndex

getLineIndex(glyph_index: int) -> int

int getLineIndex(int glyph_index)

getLineLocation

getLineLocation(glyph_info: flGlyphInfo) -> int

int getLineLocation(flGlyphInfo glyph_info)

getMouseHitNode

getMouseHitNode() -> Any

flNodeInfo/Nothing getMouseHitNode()

getNearbyGlyphs

getNearbyGlyphs(text_block_point: QPointF, max_dist: float) -> Any

list(flGlyphInfo)/Nothing getNearbyGlyphs(QPointF text_block_point, double max_dist)

getNextGlyphInLine

getNextGlyphInLine(glyph_index: int) -> Any

flGlyphInfo/Nothing getNextGlyphInLine(int glyph_index)

getPrevGlyphInLine

getPrevGlyphInLine(glyph_index: int) -> Any

flGlyphInfo/Nothing getPrevGlyphInLine(int glyph_index)

getScvNode

getScvNode() -> Any

flNodeInfo/Nothing getScvNode()

getSelectedCharacters

getSelectedCharacters() -> Any

fgSymbolList/Nothing getSelectedCharacters()

getSelectedGlyphs

getSelectedGlyphs() -> Any

list(flGlyphInfo)/Nothing getSelectedGlyphs()

glyphsBoundsOnCanvas

glyphsBoundsOnCanvas(EditMode: Any) -> QRectF

QRectF glyphsBoundsOnCanvas(EditMode)

glyphsChanged

glyphsChanged() -> Any

glyphsChanged()

glyphsCount

glyphsCount() -> int

int glyphsCount()

hasHoveredNodeEdit

hasHoveredNodeEdit() -> bool

bool hasHoveredNodeEdit()

haveText

haveText() -> bool

bool haveText()

hoveredNodeEdit

hoveredNodeEdit() -> flNodeInfo

flNodeInfo hoveredNodeEdit()

hoveredNodeEditDetails

hoveredNodeEditDetails() -> Any

HoveredInfoDetails hoveredNodeEditDetails()

init

init(canvas: flCanvas) -> Any

init(flCanvas& canvas)