fontlab.GlyphComponent · declarations 001
Back to fontlab.GlyphComponent
name_id
instance-attribute
name_id: Any
uint
The glyph ID of the base glyph being referenced. Use with font.glyph(id) to retrieve the actual flGlyph. If you created the component with a name string, name_id will be 0 until the component is resolved.
Source: FontLab Proteus API documentation
transform
instance-attribute
transform: Any
QTransform
The 2-D transform applied to the base glyph when it is drawn as part of this composite. A simple translation (e.g. QTransform().translate(0, 300)) shifts the component 300 units up. For accented letters with use_anchors = False, the translation typically places the accent above the base letter.
Source: FontLab Proteus API documentation
use_anchors
instance-attribute
use_anchors: Any
bool
If True, the component is positioned by matching its attachment anchor to the base glyph's anchor — for example, the _top anchor on the accent snaps to the top anchor on the base letter. If False, the explicit transform is used for positioning. For mark-to-base composites (accented letters), True is the standard approach and is required for the font to correctly place diacritics.
Source: FontLab Proteus API documentation
width_scale
instance-attribute
width_scale: Any
double
Scale factor applied to the component's advance width when compositing. 1.0 uses the base glyph's normal width. Values other than 1.0 are unusual.
Source: FontLab Proteus API documentation