Skip to content

fontlab_glyport.model.proxies.GSLayer · declarations 001

Back to fontlab_glyport.model.proxies.GSLayer

BSB property

BSB: float

LSB property writable

LSB: float

RSB property writable

RSB: float

TSB property

TSB: float

__new__

__new__(*args, **kwargs)

addNodesAtExtremes

addNodesAtExtremes(force=False, checkSelection=False) -> None

Insert exact cubic/quadratic extrema; preserve the curve's geometry.

addSelection_

addSelection_(element)

Add one owned selectable object without replacing other selection.

anchorForName_

anchorForName_(name)

anchors property writable

anchors: ProxySequence

applyTransform

applyTransform(transform)

Affine (a, b, c, d, tx, ty) applied to the layer's outlines natively.

ascender property

ascender: float

The master's ascender (Glyphs layers have no own metrics here).

associatedFontMaster

associatedFontMaster()

associatedMasterId property

associatedMasterId: str

The connected master's ID, independent of an auxiliary's own ID.

background property writable

background

beginChanges

beginChanges()

Group live edits in the existing document Undo scope.

bezierPath property

bezierPath

The layer's paths as an NSBezierPath (drawing.cocoa_drawing), or None without paths. Closed paths start at their last node, as Glyphs lists the start node last.

bounds property

bounds: Rect

Outline bounds; an empty layer has a zero rect at the origin.

clear

clear()

clearSelection

clearSelection()

Clear observable selection; unsupported kinds cannot be changed.

color property writable

color

Glyphs label colour index from FontLab's layer mark (None = no mark).

compareString

compareString()

completeBezierPath property

completeBezierPath

Paths plus decomposed components (each through its transform).

components property writable

components: ProxySequence

copyDecomposedLayer

copyDecomposedLayer()

A detached copy (paths with components decomposed, anchors, width); edits to it never reach the font.

correctPathDirection

correctPathDirection() -> None

Orient outer closed paths counterclockwise and counters clockwise.

decomposeComponent_

decomposeComponent_(component: GSComponent) -> None

Replace exactly one owned component with its transformed base shapes.

decomposeComponents

decomposeComponents() -> None

Recursively replace components with transformed outlines in one Undo group.

descender property

descender: float

draw

draw(pen, contours=True, components=True) -> None

Draw to a fontTools segment pen without changing the layer.

drawPoints

drawPoints(pointPen, contours=True, components=True) -> None

Draw node types, smoothness, names and components to a point pen.

endChanges

endChanges()

foreground

foreground()

getPen

getPen()

Return a writing pen accepting fontTools segment and point commands.

getPointPen

getPointPen()

Return a writing point pen (the same dual protocol as getPen).

glyph

glyph()

Glyphs' layer.glyph(): the parent glyph.

glyphMetrics

glyphMetrics() -> tuple

Glyphs' (width, ascender, capHeight, descender, xHeight, italicAngle, vertWidth); vertical width is not modelled (None).

guides property writable

guides: ProxySequence

hasAlignedWidth

hasAlignedWidth() -> bool

Plain outlines have no width inherited by automatic alignment.

FontLab component positioning does not expose Glyphs' alignment state.

hints property writable

PostScript hints, written through FontLab's edit_layer_hints tool.

indexOfObjectInShapes_

indexOfObjectInShapes_(shape)