typerig.proxy.gs3.objects.shape.trShape
trShape
Proxy bridging the Core Shape model to GlyphsApp.
GlyphsApp has no explicit "shape" grouping: a layer holds GSPath objects and GSComponent objects directly. trShape handles both cases:
Outline shape — host is the parent GSLayer. self.data = [trContour per GSPath in layer.paths] One outline trShape per layer groups all paths.
Component shape — host is a GSComponent. self.data is empty (no editable contours). Component metadata is accessed via properties.
Constructor: trShape(GSLayer) — outline shape trShape(GSComponent) — component shape
Attributes: .host: GSLayer (outline) or GSComponent (component) .is_component: True when wrapping a GSComponent
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, host, **kwargs) |
|
__meta__ |
attribute | ||
__meta_keys |
attribute | ||
__setattr__ |
function | (self, name, value) |
|
component_name |
attribute | (self) |
Referenced glyph name (component shapes only). |
component_offset |
attribute | (self) |
Translation offset as (x, y) (component only). |
component_transform |
attribute | (self) |
Affine transform as a 6-tuple (a, b, c, d, tx, ty) (component only). |
eject |
function | (self) |
Detach from host: return a pure core Shape. |
is_component |
attribute | (self) |
|
mount |
function | (self, core_shape) |
Write core Shape data back into the GS3 host. |
name |
attribute | (self) |
|
reorder |
function | (self, order) |
|
reverse |
function | (self) |