Skip to content

typerig.proxy.gs3.objects.glyph.trGlyph

trGlyph

Proxy to GSGlyph object.

Constructor: trGlyph() — wraps current glyph in the active edit tab trGlyph(GSGlyph) — wraps a specific GSGlyph trGlyph(GSFont, name) — looks up glyph by name in a font trGlyph(name, GSFont) — same, arguments in either order

Attributes: .host (GSGlyph): wrapped GlyphsApp glyph

Source bases

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
__getattribute__ function (self, name)
__init__ function (self, *argv, **kwargs)
__meta__ attribute (shared captured text)
__meta_keys attribute (shared captured text)
__setattr__ function (self, name, value)
active_layer attribute (self) Name of the layer currently active in the editor, with sane fallbacks.
add_layer function (self, layer_name, master_id=None) Create a new empty GSLayer and add it to the host glyph.
background_names function (self) 'mask.<layer>' for every layer whose background holds shapes or anchors.
duplicate_layer function (self, src_name, dst_name) Copy layer src_name as a new non-master layer dst_name on the same master (FL pGlyph.duplicateLayer, references=False): shapes, anchors and advance width are copied, so the new layer has the same…
eject function (self) Detach from host: return a pure core Glyph with all layers and metadata.
find_layer function (self, layer_name) Find a layer by name and return its proxy, or None.
is_background function (self, layer_name) True if layer_name resolves to a background, not a real layer.
layer function (self, layer_name=None) Core Glyph.layer, plus backgrounds addressed as 'mask.<layer>'.
mark attribute (self) Glyph flag colour as a hex string (e.g. '#FF3B30') or None.
remove_layer function (self, layer_name) Remove a non-master layer by name.
unicodes attribute (self) Unicode values as a list of integers ([] for an unencoded glyph: Glyphs gives None there, not an empty list).
update function (self) Notify GlyphsApp that changes have been applied.