class_docstr: Pen recording operations that can be accessed or replayed.
  
  The recording can be accessed as pen.value; or replayed using
  pen.replay(otherPen).
  
  :Example:
  
          from fontTools.ttLib import TTFont
          from fontTools.pens.recordingPen import RecordingPen
  
          glyph_name = 'dollar'
          font_path = 'MyFont.otf'
  
          font = TTFont(font_path)
          glyphset = font.getGlyphSet()
          glyph = glyphset[glyph_name]
  
          pen = RecordingPen()
          glyph.draw(pen)
          print(pen.value)
class_docstr_tok: ["Pen","recording","operations","that","can","be","accessed","or","replayed",".","The","recording","can","be","accessed","as","pen.value",";","or","replayed","using","pen.replay","(","otherPen",")",".",":","Example",":","from","fontTools.ttLib","import","TTFont","from","fontTools.pens.recordingPen","import","RecordingPen","glyph_name","=","'dollar'","font_path","=","'MyFont.otf'","font","=","TTFont","(","font_path",")","glyphset","=","font.getGlyphSet","(",")","glyph","=","glyphset","[","glyph_name","]","pen","=","RecordingPen","(",")","glyph.draw","(","pen",")","print","(","pen.value",")"]
code: def __init__(self):
      self.value = []
  
imports: from fontTools.pens.basePen import AbstractPen, DecomposingPen
  from fontTools.pens.pointPen import AbstractPointPen
label_desc: Use image node_id 1 to create a new RecordingPen object from inherited base classes: AbstractPen with example: obj = RecordingPen()