fontlab_pens.transform
transform
Immutable affine Transform and pens that transform coordinates.
Transform is a 6-field NamedTuple (xx, xy, yx, yy, dx, dy) like fontTools',
so it compares equal to plain 6-tuples and to fontTools Transform objects.
DecomposedTransform is not ported.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
Identity |
attribute | ||
Offset |
function | (x: float=0, y: float=0) -> Transform |
Return the identity transformation offset by x, y. |
Point |
attribute | (shared captured text) | |
Scale |
function | (x: float, y: float | None=None) -> Transform |
Return the identity transformation scaled by x, y (y defaults to x). |