Skip to content

typerig.proxy.fl.objects.glyph.pGlyph

pGlyph

Proxy to flGlyph and fgGlyph combined into single entity.

Constructor: pGlyph() : default represents the current glyph and current font pGlyph(flGlyph) pGlyph(fgFont, fgGlyph)

Methods:

Attributes: .parent (fgFont) .fg (fgGlyph) .fl (flGlyph) ...

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)
activeGuides function (self)
activeLayer function (self)
addAnchor function (self, coordTuple, name, layer=None, isAnchor=True) Adds named Anchor at given layer.
addComponents function (self, componentConfig, layer=None, useAnchors=True, colorize=False) Adds a components to given glyph layer.
addGuideline function (self, coordTuple, layer=None, angle=0, name='', tag='', color='darkMagenta', style='gsGlyphGuideline', expre… Adds named Guideline at given layer.
addLayer function (self, layer, toBack=False) Adds a layer to glyph.
addShape function (self, shape, layer=None, clone=False) Add a new shape at given layer.
addShapeContainer function (self, shapeList, layer=None, remove=True) Add a new shape container* at given layer.
anchors function (self, layer=None) Return list of anchors (list[flAnchor]) at given layer (int or str)
blendShapes function (self, shapeA, shapeB, blendTimes, outputFL=True, blendMode=0, engine='fg') Blend two shapes at given times (anisotropic support).
clearAnchors function (self, layer=None) Remove all anchors at given layer (int or str)
components function (self, layer=None, extend=None) Return all glyph components besides glyph.
containers function (self, layer=None, extend=None) Return all complex shapes that contain other shapes at given layer.
contours function (self, layer=None, deep=False, extend=None) Return all contours at given layer.
copyLayer function (self, srcLayerName, dstLayerName, options, addLayer, cleanDST, toBack)
decompose function (self, layer=None) Decompose all complex shapes that contain other shapes at given layer.
dereference function (self, layer=None) Remove all shape references but leave components.
draw function (self, pen, layer=None) Utilizes the Pen protocol
drawContours function (self, pen, layer=None) Utilizes the Pen protocol
drawPoints function (self, pen, layer=None) Utilizes the PointPen protocol
duplicateLayer function (self, layer=None, newLayerName='New Layer', references=False) Duplicates a layer with new name and adds it to glyph's layers.
elements function (self, layer=None, extend=None) Return all glyph elements in glyph
fg_activeLayer function (self)
fg_contours function (self, layer=None) Return all FontGate contours at given layer.
fg_hasLayer function (self, layerName)
fg_layer function (self, layer=None) Returns FontGate layer no matter the reference.
fg_layers function (self, asDict=False) Return all FotnGate layers
fg_nodes function (self, layer=None) Return all FontGate nodes at given layer.
fg_shapes function (self, layer=None) Return all FontGate shapes at given layer.
findAnchor function (self, anchorName, layer=None) Find anchor by name/tag
findAnchorCoords function (self, anchorName, layer=None) Find anchor coordinates by name/tag
findNode function (self, nodeName, layer=None) Find node by name/tag
findNodeCoords function (self, nodeName, layer=None) Find node coordinates by name/tag
findShape function (self, shapeName, layer=None, deep=True) Finds shape by name on given layer.
fontMetricsInfo function (self, layer=None) Returns Font(layer) metrics no matter the reference.
getAdvance function (self, layer=None) Get the Advance Width at given layer (int or str)
getBounds function (self, layer=None) Get Glyph's Boundig Box at given layer (int or str).
getBuilders function (self, layer=None, store=False)
getCompositionDict function (self, layer=None) Return composition dict of a glyph.
getCompositionNames function (self, layer=None) Return name of glyph and the parts it is made of.
getElementNames function (self, layer=None) Return names of elements references used in glyph.
getLSB function (self, layer=None) Get the Left Side-bearing at given layer (int or str)
getRSB function (self, layer=None) Get the Right Side-bearing at given layer (int or str)
getSBeq function (self, layer=None) Get LSB, RSB metric equations on given layer
getSegment function (self, cID, nID, layer=None) Returns contour segment of the node specified at given layer.
getTSB function (self, layer=None) Get the Top (Vertical) Side-bearing at given layer (int or str)
getTags function (self)
getVSB function (self, layer=None) Get the Bottom (Vertical) Side-bearing at given layer (int or str)
guidelines function (self, layer=None) Return list of guidelines (list[flGuideline]) at given layer (int or str)
hasLayer function (self, layerName)
hasSBeq function (self, layer=None) Returns True if glyph has any SB equation set
id attribute (self)
importLayer function (self, srcGlyph, srcLayerName, dstLayerName, options={'out': True, 'gui': True, 'anc': True, 'lsb': True, 'ad… Copies (imports) a layer from another glyph.
index attribute (self)
insertNodeAt function (self, cID, nID_time, layer=None) Inserts node in contour at specified layer.
insertNodesAt function (self, cID, nID, nodeList, layer=None) Inserts a list of nodes to specified contour, starting at given index all on layer specified.
isCompatible function (self, strong=False) Test if glyph is ready for interpolation - all master layers are compatible.
isEmpty function (self, strong=True)
isHybridComponent function (self, layer=None) Test if glyph has contours mixed with components
isMixedReference function (self) Test if glyph has mixed references - components on some layers and referenced shapes on others
italicAngle function (self)
layer function (self, layer=None) Returns layer no matter the reference.
layers function (self) Return all layers
mLine function (self)
mapNodes2Times function (self, layer=None) Create map of Nodes at contour times for every contour in given layer.
mapTimes2Nodes function (self, layer=None) Create map of Contour times at node indexes for every contour in given layer.
mark attribute (self)
mask function (self, layer=None, force_create=False) Returns mask layer no matter the reference.
masks function (self) Returns all mask layers.
masters function (self) Returns all master layers.
name attribute (self)
newAnchor function (self, coordTuple, name, anchorType=1) Creates new anchor.
nodes function (self, layer=None, extend=None, deep=False) Return all nodes at given layer.
nodes4segments function (self, cID, layer=None) Returns all contour segments and their corresponding nodes at given layer.
nodesForIndices function (self, indices, layer=None, filterOn=False, extend=None, deep=False)
noncomplex function (self, layer=None, extend=None) Return all glyph shapes that are not glyph references or components
note attribute (self)
object function (self)
package attribute (self)
removeLayer function (self, layer) Removes a layer from glyph.
removeNodeAt function (self, cID, nID, layer=None) Removes a node from contour at layer specified.
removeNodes function (self, cID, nodeList, layer=None) Removes a list of nodes from contour at layer specified.
removeShape function (self, shape, layer=None, recursive=True) Remove a new shape at given layer.
replaceShape function (self, old_shape, new_shape, layer=None) Repalce a shape at given layer.
replaceShapeAdv function (self, old_shape_name, new_shape, layer=None) Advanced Repalce a shape at given layer.
reportLayerComp function (self, strong=False) Returns a layer compatibility report
rotate function (self, deg, layer=None) Rotate outline at given layer.
scale function (self, sx, sy, layer=None) Scale outline at given layer.
segments function (self, cID, layer=None) Returns all contour segments at given layer.
selected function (self, filterOn=False, deep=False) Return all selected nodes indexes at current layer.
selectedAtContours function (self, index=True, layer=None, filterOn=False, deep=False) Return all selected nodes and the contours they rest upon at current layer.
selectedAtShapes function (self, index=True, filterOn=False, layer=None, deep=False) Return all selected nodes and the shapes they belong at current layer.
selectedContours function (self, layer=None, allNodesSelected=False, deep=False)
selectedCoords function (self, layer=None, filterOn=False, applyTransform=False, deep=False) Return the coordinates of all selected nodes at the current layer or other.
selectedNodeIndices function (self, filterOn=False, deep=False) Return all indices of nodes selected at current layer.
selectedNodes function (self, layer=None, filterOn=False, extend=None, deep=False) Return all selected nodes at given layer.
selectedNodesOnCanvas function (self, filterOn=False)
selectedSegments function (self, layer=None, deep=False) Returns list of currently selected segments.
selectedShapeIndices function (self, layer=None, select_all=False, deep=False) Return all indices of nodes selected at current layer.
selectedShapes function (self, layer=None, deep=False, extend=None) Return all shapes that have a node selected.
services function (self) Returns all service layers.
setADVeq function (self, equationStr, layer=None) Set Advance width metric equation on given layer
setAdvance function (self, newAdvance, layer=None) Set the Advance Width (int) at given layer (int or str)
setLSB function (self, newLSB, layer=None) Set the Left Side-bearing (int) at given layer (int or str)
setLSBeq function (self, equationStr, layer=None) Set LSB metric equation on given layer
setMark function (self, mark_color, layer=None)
setName function (self, glyph_name)
setRSB function (self, newRSB, layer=None) Set the Right Side-bearing (int) at given layer (int or str)
setRSBeq function (self, equationStr, layer=None) Set RSB metric equation on given layer
setSBeq function (self, equationTuple, layer=None) Set LSB, RSB metric equations on given layer
setTSB function (self, newTSB, layer=None) Set the Bottom (Vertical) Side-bearing by adjusting the topmost point position (int) at given layer (int or str)
setTags function (self, tagList, append=True)
setVSB function (self, newVSB, layer=None) Set the Bottom (Vertical) Side-bearing (int) at given layer (int or str)
shapes function (self, layer=None, extend=None, deep=False) Return all shapes at given layer.
shapes_data function (self, layer=None) Return all flShapeData objects at given layer.
slant function (self, deg, layer=None) Slant outline at given layer.
tag function (self, newTag)
tags attribute (self)
translate function (self, dx, dy, layer=None) Translate (shift) outline at given layer.
unicode attribute (self)
unicodes attribute (self)
update function (self, layer=None) Updates the glyph and sends notification to the editor.
updateObject function (self, flObject, undoMessage='TypeRig', verbose=True) Updates a flObject sends notification to the editor as well as undo/history item.
version function (self)