debogofied doc string, added another one
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@453 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
d3ee2d4319
commit
0b0fec3b08
@ -6,11 +6,15 @@ __all__ = ["TransformPen"]
|
|||||||
|
|
||||||
class TransformPen(AbstractPen):
|
class TransformPen(AbstractPen):
|
||||||
|
|
||||||
"""Pen that passes transforms all coordinates, and passes them
|
"""Pen that transforms all coordinates using a Affine transformation,
|
||||||
to another pen.
|
and passes them to another pen.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, outPen, transformation):
|
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.
|
||||||
|
"""
|
||||||
if not hasattr(transformation, "transformPoint"):
|
if not hasattr(transformation, "transformPoint"):
|
||||||
from fontTools.misc.transform import Transform
|
from fontTools.misc.transform import Transform
|
||||||
transformation = Transform(*transformation)
|
transformation = Transform(*transformation)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user