Skip to content

typerig.proxy.tr.objects.font.trFontProxy

trFontProxy

FontLab proxy for .trfont export / import.

Wraps an flPackage and provides a clean path from a live FL session to a .trfont folder on disk and back. All per-element serialization goes through the core objects; this class handles only the FL ↔ core mapping and glyph dispatch.

Constructor: trFontProxy() → uses CurrentFont() trFontProxy(fl6.flPackage(...)) → specific package trFontProxy(fgt.fgFont(...)) → fgFont directly

Attributes: .host (fl6.flPackage) : wrapped FL package .fg (fgt.fgFont) : shorthand to fgPackage

Source bases

  • object (not resolved from selected source)

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *argv)
__repr__ function (self)
add_glyph function (self, glyph) Adds a Glyph (fgGlyph or flGlyph) to font
all_glyph_names attribute (self) All glyph names in font order.
create_glyph function (self, glyph_name, layers=[], unicode_int=None) Creates new glyph and adds it to the font.
eject function (self, glyph_names=None, include_encoding=True, include_axes=True, include_features=True, include_groups=True… Eject FL font (or subset of glyphs) to a pure core Font.
fg attribute (self)
fl attribute (self)
glyph function (self, glyph, extend=None) Return TypeRig proxy glyph object (trGlyph) by index (int) or name (str).
has_glyph function (self, glyphName)
load_and_mount function (self, path, **kwargs) Read a .trfont folder and immediately mount it into the live FL session.
load_raw function (path) Read a .trfont folder and return a pure core Font.
mount function (self, font, include_features=True, include_groups=True, verbose=False) Push a core Font back into the live FL session.
save function (self, path, glyph_names=None, include_encoding=True, include_axes=True, include_features=True, include_group… Eject + write to .trfont folder in one call.
selected_glyph_names attribute (self) Names of currently selected glyphs in the FL font window.