vfbLib.vfb.glyph.VfbGlyph

class vfbLib.vfb.glyph.VfbGlyph(entry: VfbEntry, parent: Vfb | VfbMaster)

Bases: object

__init__(entry: VfbEntry, parent: Vfb | VfbMaster) None

Methods

__init__(entry, parent)

clearContours()

decompile()

Decompile the Glyph entry and return the glyph name.

draw(pen)

Draw the VFB glyph onto a segment pen.

drawPoints(pen)

Draw the VFB glyph onto a point pen.

empty()

getPen()

Return a segment pen to draw into the VFB glyph.

getPointPen()

Return a point pen to draw into the VFB glyph.

Attributes

name

decompile() str

Decompile the Glyph entry and return the glyph name.

draw(pen) None

Draw the VFB glyph onto a segment pen.

drawPoints(pen: AbstractPointPen) None

Draw the VFB glyph onto a point pen.

getPen() AbstractPen

Return a segment pen to draw into the VFB glyph.

getPointPen() VfbGlyphPointPen

Return a point pen to draw into the VFB glyph.