Skip to content

fontlab.flPaper · declarations 001

Back to fontlab.flPaper

activeGlyphInfo

activeGlyphInfo() -> flObject

flObject activeGlyphInfo()

Returns the flGlyphInfo of the glyph that is currently active — the one shown with its outline nodes. Returns Nothing if no glyph is active. Cast to flGlyphInfo before use.

Source: FontLab Proteus API documentation

createInstance

createInstance() -> flPaper

flPaper createInstance()

Creates a detached flPaper instance. In most use cases the paper is created and managed by the canvas engine.

Source: FontLab Proteus API documentation

getGlyphInfo

getGlyphInfo(arg0: flObject) -> flObject

flObject getGlyphInfo(flObject)

Given an flGlyph, returns its flGlyphInfo on this paper if it is currently displayed. Returns Nothing if the glyph is not in the current text string.

Source: FontLab Proteus API documentation

glyph

glyph() -> flObject

flObject glyph()

Returns the main flGlyph currently displayed (the active glyph, if set).

Source: FontLab Proteus API documentation

glyphInfoAt

glyphInfoAt(index: int) -> flObject

flObject glyphInfoAt(int index)

Returns the flGlyphInfo at position index in the paper's ordered list. Use this with hasContent() and a known count to iterate all displayed glyphs.

Source: FontLab Proteus API documentation

glyphsBoundRect

glyphsBoundRect() -> QRectF

QRectF glyphsBoundRect()

Returns the bounding rectangle in canvas units that encloses all displayed glyphs. Useful for computing a "zoom to fit" level or checking which area needs repainting.

Source: FontLab Proteus API documentation

hasActive

hasActive() -> bool

bool hasActive()

Returns True if one of the displayed glyphs is currently active (its outline nodes are visible and editable). When no glyph is open for editing, returns False.

Source: FontLab Proteus API documentation

hasContent

hasContent() -> bool

bool hasContent()

Returns True if the paper has at least one glyph to display. An empty paper (empty text string) returns False.

Source: FontLab Proteus API documentation

package

package() -> flObject

flObject package()

Returns the flPackage (font file) whose glyphs are displayed on this paper.

Source: FontLab Proteus API documentation

setActiveGlyph

setActiveGlyph(glyph: flObject) -> flObject

flObject setActiveGlyph(flObject glyph)

Sets which glyph is open for outline editing (shows its nodes). Returns the updated flGlyphInfo. Use this to programmatically open a glyph for editing in the metrics view.

Source: FontLab Proteus API documentation

setPaperGlyph

setPaperGlyph(glyph: flObject) -> flObject

flObject setPaperGlyph(flObject glyph)

Sets which glyph is the main (central) glyph displayed on the paper. Returns the new flGlyphInfo for that glyph.

Source: FontLab Proteus API documentation