User Guide
FontLab 4
702
FontLab
The highest class in the FontLab hierarchy is a class named FontLab. You
cannot create it explicitly, but the object of this class is always available
and is named “fl”.
This class contains seven most important members:
ifont
Index of the active font
font
Current font as a Font object
ifontslist
Index of currently selected font in the fonts list panel
iglyph
Index of the currently active glyph in the current font
glyph
Current glyph as a Glyph object
count
Read-only - number of opened fonts
count_selected
Number of selected glyphs in the Font Window
You can also access the fl object as a list of Font-type objects:
print fl[0].font_name