class_docstr: Pen that transforms all coordinates using a Affine transformation,
  and passes them to another pen.
class_docstr_tok: ["Pen","that","transforms","all","coordinates","using","a","Affine","transformation",",","and","passes","them","to","another","pen","."]
docstr: The 'outPen' argument is another pen object. It will receive the
  transformed coordinates. The 'transformation' argument can either
  be a six-tuple, or a fontTools.misc.transform.Transform object.
docstr_tok: ["The","'outPen","'","argument","is","another","pen","object",".","It","will","receive","the","transformed","coordinates",".","The","'transformation","'","argument","can","either","be","a","six-tuple",",","or","a","fontTools.misc.transform.Transform","object","."]
code: def __init__(self, outPen, transformation):
      """The 'outPen' argument is another pen object. It will receive the
      transformed coordinates. The 'transformation' argument can either
      be a six-tuple, or a fontTools.misc.transform.Transform object.
      """
      super(TransformPen, self).__init__(outPen)
      if not hasattr(transformation, "transformPoint"):
          from fontTools.misc.transform import Transform
  
          transformation = Transform(*transformation)
      self._transformation = transformation
      self._transformPoint = transformation.transformPoint
      self._stack = []
  
file_path: catboost/contrib/python/fonttools/fontTools/pens/transformPen.py
imports: from fontTools.pens.filterPen import FilterPen, FilterPointPen
label_desc: Use image node_id 1 to create a new TransformPen object from inherited base classes: FilterPen with example: obj = TransformPen(outPen, transformation)