fontlab.flGlyphInfo · declarations 001
activeLayer
instance-attribute
activeLayer: Any
flLayer
The real layer resolved for this occurrence; no editable layer for an interpolated presentation.
Source: FontLab Proteus API documentation
applyTransform
applyTransform() -> Any
applyTransform()
Commits the accumulated canvas transform to the glyph model and resets the transform. Call this to make temporary interactive transforms permanent.
Source: FontLab Proteus API documentation
applyTransformTo
applyTransformTo(type: int) -> Any
applyTransformTo(uint type)
Applies the glyph's current canvas transform to a specific subset of its elements. type is a bitmask. Used internally by the transform tool.
Source: FontLab Proteus API documentation
bodyRectOnCanvas
instance-attribute
bodyRectOnCanvas: Any
QRectF
The UPM body rectangle (from descender to ascender) in canvas coordinates.
Source: FontLab Proteus API documentation
boundingBox
instance-attribute
boundingBox: Any
QRectF
The bounding box of this glyph in glyph units (not canvas).
Source: FontLab Proteus API documentation
brectOnCanvas
instance-attribute
brectOnCanvas: Any
QRectF
The complete bounding rectangle of this glyph in canvas coordinates — including the advance width boxes on both sides.
Source: FontLab Proteus API documentation
changedRect
instance-attribute
changedRect: Any
QRectF
The canvas region that changed during the last editing operation. Used for efficient incremental repaints.
Source: FontLab Proteus API documentation
clearPresentationOverride
clearPresentationOverride() -> bool
bool clearPresentationOverride()
createBoundingBox
createBoundingBox() -> Any
createBoundingBox()
Creates or refreshes the bounding box overlay shape for this glyph.
Source: FontLab Proteus API documentation
dist
instance-attribute
dist: Any
double
Distance value used in nearest-glyph queries (e.g. finding the glyph closest to a drag point).
Source: FontLab Proteus API documentation
fontSize
instance-attribute
fontSize: Any
int
The point size at which this glyph is displayed in the metrics view.
Source: FontLab Proteus API documentation
getNearbyContours
getNearbyContours(arg0: QPointF, max_dist: float, exclude_attr: str) -> Any
list(flContourInfo) getNearbyContours(QPointF, double max_dist, QString exclude_attr)
getTopHitShape
getTopHitShape(arg0: QPointF) -> Any
flShapeInfo/Nothing getTopHitShape(QPointF)
Returns the topmost (front-most in z-order) shape whose filled area contains the given canvas point, or Nothing. Useful for implementing "click to select shape" logic.
Source: FontLab Proteus API documentation
glyph
instance-attribute
glyph: Any
flGlyph
The flGlyph model object this info is rendering. Use this to read/write the font data.
Source: FontLab Proteus API documentation
glyphRectCanvas
instance-attribute
glyphRectCanvas: Any
QRectF
The ink (actual contour) bounding rectangle of this glyph in canvas coordinates.
Source: FontLab Proteus API documentation
hasPresentationOverride
instance-attribute
hasPresentationOverride: Any
bool
Whether this occurrence explicitly selects a layer or location.
Source: FontLab Proteus API documentation
hitToShape
hitToShape(arg0: QPointF) -> bool
bool hitToShape(QPointF)
Returns True if the given canvas point falls inside any filled shape of this glyph. The fastest way to answer "did the user click inside the glyph?".
Source: FontLab Proteus API documentation
isActive
instance-attribute
isActive: Any
bool
True if this is the glyph currently open for editing in the glyph editor.
Source: FontLab Proteus API documentation
isEditable
instance-attribute
isEditable: Any
bool
Whether the resolved layer permits editing, independent of the canvas's across-glyph policy.
Source: FontLab Proteus API documentation
isNullGlyph
instance-attribute
isNullGlyph: Any
bool
True if this info represents a placeholder (e.g. a character not in the font).
Source: FontLab Proteus API documentation
isSelected
instance-attribute
isSelected: Any
bool
True if this glyph is selected in the metrics view.
Source: FontLab Proteus API documentation
kerningOffset
kerningOffset(useKerning: bool) -> float
double kerningOffset(bool useKerning)
Returns the kerning offset that should be applied before this glyph when rendering in the metrics view. Pass True to include actual kern pair values; pass False to get only the spacing offset without kerning. Useful for custom metrics display code.
Source: FontLab Proteus API documentation
leftOffset
instance-attribute
leftOffset: Any
double
Extra left-side offset for layout. Does not change LSB.
Source: FontLab Proteus API documentation
metricsRectOnCanvas
instance-attribute
metricsRectOnCanvas: Any
QRectF
The metrics rectangle (descender to ascender) in canvas coordinates.
Source: FontLab Proteus API documentation
name
instance-attribute
name: Any
QString
The glyph name (shortcut to glyph.name).
Source: FontLab Proteus API documentation
rightOffset
instance-attribute
rightOffset: Any
double
Extra right-side offset added when laying out this glyph in the metrics view. Does not change RSB in the font.
Source: FontLab Proteus API documentation
setBoundAscender
setBoundAscender(double: Any) -> Any
setBoundAscender(double)
Overrides the ascender bound used for layout/clipping of this glyph in the metrics view.
Source: FontLab Proteus API documentation
setBoundDescender
setBoundDescender(double: Any) -> Any
setBoundDescender(double)
Overrides the descender bound.
Source: FontLab Proteus API documentation
setBoundLeft
setBoundLeft(double: Any) -> Any
setBoundLeft(double)
Overrides the left-side bound.
Source: FontLab Proteus API documentation
setBoundRight
setBoundRight(double: Any) -> Any
setBoundRight(double)
Overrides the right-side bound.
Source: FontLab Proteus API documentation
setGlyphScale
setGlyphScale(*args: Any, **kwargs: Any) -> Any
setGlyphScale(double, double)
Sets the horizontal and vertical rendering scale for this glyph instance on the canvas (does not change the font data).
Source: FontLab Proteus API documentation
setKerningOffset
setKerningOffset(offs: float) -> Any
setKerningOffset(double offs)
Manually overrides the kerning offset for this glyph instance in the metrics display. Does not change the font's kerning data — only the canvas rendering.
Source: FontLab Proteus API documentation
shapesBoundingBoxOnCanvas
instance-attribute
shapesBoundingBoxOnCanvas: Any
QRectF
The combined bounding box of all shapes in canvas coordinates.
Source: FontLab Proteus API documentation
state
instance-attribute
state: Any
uint
A bitmask of the current glyph-info state flags. Controls things like selection, hover, and activity state for rendering.
Source: FontLab Proteus API documentation
symbol
instance-attribute
symbol: Any
fgSymbol
The character identity record for this glyph slot — contains the Unicode value, glyph name, and ligature index.
Source: FontLab Proteus API documentation
textBlock
instance-attribute
textBlock: Any
flTextBlock, int
The text block and index-within-that-block that this glyph belongs to. Read when you need to know which text line or text object contains this glyph.
Source: FontLab Proteus API documentation