class_docstr: Pen used for drawing to a TrueType glyph.
  
  This pen can be used to construct or modify glyphs in a TrueType format
  font. After using the pen to draw, use the ``.glyph()`` method to retrieve
  a :py:class:`~._g_l_y_f.Glyph` object representing the glyph.
class_docstr_tok: ["Pen","used","for","drawing","to","a","TrueType","glyph",".","This","pen","can","be","used","to","construct","or","modify","glyphs","in","a","TrueType","format","font",".","After","using","the","pen","to","draw",",","use","the","``",".glyph","(",")","``","method","to","retrieve","a",":","py",":","class",":","`","~._g_l_y_f.Glyph","`","object","representing","the","glyph","."]
code: def __init__(
      self,
      glyphSet: Optional[Dict[str, Any]] = None,
      handleOverflowingTransforms: bool = True,
      outputImpliedClosingLine: bool = False,
  ) -> None:
      super().__init__(glyphSet, handleOverflowingTransforms)
      self.outputImpliedClosingLine = outputImpliedClosingLine
  
imports: from array import array
  from typing import Any, Callable, Dict, Optional, Tuple
  from fontTools.misc.fixedTools import MAX_F2DOT14, floatToFixedToFloat
  from fontTools.misc.loggingTools import LogMixin
  from fontTools.pens.pointPen import AbstractPointPen
  from fontTools.misc.roundTools import otRound
  from fontTools.pens.basePen import LoggingPen, PenError
  from fontTools.pens.transformPen import TransformPen, TransformPointPen
  from fontTools.ttLib.tables import ttProgram
  from fontTools.ttLib.tables._g_l_y_f import flagOnCurve, flagCubic
  from fontTools.ttLib.tables._g_l_y_f import Glyph
  from fontTools.ttLib.tables._g_l_y_f import GlyphComponent
  from fontTools.ttLib.tables._g_l_y_f import GlyphCoordinates
  from fontTools.ttLib.tables._g_l_y_f import dropImpliedOnCurvePoints
  import math
label_desc: Use image node_id 1 to create a new TTGlyphPen object from inherited base classes: _TTGlyphBasePen, LoggingPen with example: obj = TTGlyphPen(glyphSet, handleOverflowingTransforms, outputImpliedClosingLine)