User Guide
FontLab 4
706
Glyph
The Glyph class represents the glyph as a data structure in FontLab. The
most important members are listed in the following table:
parent
Glyph's parent object, the Font
index Index of the glyph in the font (it is –1 if the glyph is not connected
to the font)
nodes List of nodes. Each element of the list is an object of the Node
type.
customdata
A string-type data that may be attached to the glyph. This data is
stored to the FontLab font file (VFB) so you can use it to define
glyph properties that are not supported by FontLab
note
Note defined for this glyph (string type)
mark
Color code for the glyph mark or zero if glyph is not marked.
anchors
List of anchors. Each element is of Anchor type.
hhints, vhints
List of horizontal or vertical hints. Each element is of Hint type
hlinks, vlinks List of horizontal or vertical links. Each element is an object of the
Link type.
components
List of components. Each element is Component object.
kerning
List of kerning pairs. Each element is KerningPair class object.
layers_number
Number of masters in this glyph
nodes_number
Number of nodes, same as 'len(Glyph)'
width
Advance width (for the first master if glyph is Multiple Master)
height
Advance height
unicode
First Unicode index in integer form
unicodes
List of Unicode indexes
name
Glyph name
rpoint
Glyph reference point
You can get a list of operations defined for the Glyph class if you run the
following line:
print Glyph().__doc__