Skip to content

fontlab_glyport.model.proxies.GSLayer

GSLayer

Source bases

Inherited member index

Source-proven inherited members; local declarations override these entries.

  • __copy__ — defined by fontlab_glyport.model.proxies._Proxy.__copy__
  • __deepcopy__ — defined by fontlab_glyport.model.proxies._Proxy.__deepcopy__
  • __getattr__ — defined by fontlab_glyport.model.proxies._Explicit.__getattr__
  • __init__ — defined by fontlab_glyport.model.proxies._Proxy.__init__
  • __init_subclass__ — defined by fontlab_glyport.model.proxies._Explicit.__init_subclass__
  • __setattr__ — defined by fontlab_glyport.model.proxies._Explicit.__setattr__
  • className — defined by fontlab_glyport.model.proxies._Explicit.className
  • copy — defined by fontlab_glyport.model.proxies._Proxy.copy
  • id — defined by fontlab_glyport.model.proxies._Proxy.id
  • isKindOfClass_ — defined by fontlab_glyport.model.proxies._Explicit.isKindOfClass_

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
BSB attribute (self) -> float
LSB attribute (self) -> float
RSB attribute (self) -> float
TSB attribute (self) -> float
__new__ function (cls, *args, **kwargs)
addNodesAtExtremes function (self, force=False, checkSelection=False) -> None Insert exact cubic/quadratic extrema; preserve the curve's geometry.
addSelection_ function (self, element) Add one owned selectable object without replacing other selection.
anchorForName_ function (self, name)
anchors attribute (self) -> ProxySequence
applyTransform function (self, transform) Affine (a, b, c, d, tx, ty) applied to the layer's outlines natively.
ascender attribute (self) -> float The master's ascender (Glyphs layers have no own metrics here).
associatedFontMaster function (self)
associatedMasterId attribute (self) -> str The connected master's ID, independent of an auxiliary's own ID.
background attribute (self)
beginChanges function (self) Group live edits in the existing document Undo scope.
bezierPath attribute (self) The layer's paths as an NSBezierPath (drawing.cocoa_drawing), or.
bounds attribute (self) -> Rect Outline bounds; an empty layer has a zero rect at the origin.
clear function (self)
clearSelection function (self) Clear observable selection; unsupported kinds cannot be changed.
color attribute (self) Glyphs label colour index from FontLab's layer mark (None = no mark).
compareString function (self)
completeBezierPath attribute (self) Paths plus decomposed components (each through its transform).
components attribute (self) -> ProxySequence
copyDecomposedLayer function (self) A detached copy (paths with components decomposed, anchors, width); edits to it never reach the font.
correctPathDirection function (self) -> None Orient outer closed paths counterclockwise and counters clockwise.
decomposeComponent_ function (self, component: 'GSComponent') -> None Replace exactly one owned component with its transformed base shapes.
decomposeComponents function (self) -> None Recursively replace components with transformed outlines in one Undo group.
descender attribute (self) -> float
draw function (self, pen, contours=True, components=True) -> None Draw to a fontTools segment pen without changing the layer.
drawPoints function (self, pointPen, contours=True, components=True) -> None Draw node types, smoothness, names and components to a point pen.
endChanges function (self)
foreground function (self)
getPen function (self) Return a writing pen accepting fontTools segment and point commands.
getPointPen function (self) Return a writing point pen (the same dual protocol as getPen).
glyph function (self) Glyphs' <code>layer.glyph()</code>: the parent glyph.
glyphMetrics function (self) -> tuple Glyphs' <code>(width, ascender, capHeight, descender, xHeight, italicAngle, vertWidth)</code>; vertical width is not modelled (None).
guides attribute (self) -> ProxySequence
hasAlignedWidth function (self) -> bool Plain outlines have no width inherited by automatic alignment.
hints attribute (self) -> ProxySequence PostScript hints, written through FontLab's edit_layer_hints tool.
indexOfObjectInShapes_ function (self, shape)
indexOfPath_ function (self, path)
indexPathOfNode_ function (self, node)
isBraceLayer attribute (self)
isBracketLayer attribute (self)
isMasterLayer attribute (self) -> bool
isSpecialLayer attribute (self) -> bool
italicAngle attribute (self)
layerId attribute (self) -> str
leftMetricsKey attribute
master attribute (self) -> GSFontMaster
metricForType_ function (self, kind) GSMetricsType values from the master; types FontLab has no counterpart for (slant, mid, body height) read None.
name attribute (self) -> str | None Preserve auxiliary names, including empty or absent values.
nextKerningForLayer_direction_ function (self, layer, direction=GSLTR) Kerning between this layer and the following one: the glyph pair first, then glyph/group, group/glyph and group/group (Glyphs' order); NSNotFound when the pair is not kerned.
nodeAtIndexPath_ function (self, index)
parent attribute (self) The <code>GSGlyph</code> this layer belongs to.
paths attribute (self) -> ProxySequence
removeOverlap function (self, checkSelection=False) -> None Join closed paths, optionally considering only selected contours.
removeShape_ function (self, shape)
rightKerningForLayer_ function (self, layer) Glyphs 2 name of <code>nextKerningForLayer&#95;direction&#95;</code> (LTR).
rightMetricsKey attribute
selection attribute (self) -> ProxySequence Nodes, anchors, components and guides in collection order.
selectionBounds attribute (self)
shapes attribute (self) -> ProxySequence
slantHeight attribute (self)
transform_checkForSelection_doComponents_ function (self, transform, selection, components)
updateMetrics function (self)
userData attribute (self) -> UserData (shared captured text)
vertWidth attribute (self) -> float | None FontLab's advance height; None when the layer has none set.
width attribute (self) -> float
widthMetricsKey attribute