fontlab.flTransform · declarations 001
map
map(*args: Any, **kwargs: Any) -> Any
QPointF map(QPointF) | QLineF map(QLineF) | double map(double)
Pass a point, line, or single number through the transform and return the result. Use this to find where a coordinate ends up after the transform is applied.
Source: FontLab Proteus API documentation
mapRect
mapRect(QRect: Any) -> QRectF
QRectF mapRect(QRectF | QRect)
Pass a rectangle through the transform and return the transformed bounding rectangle. Note: if the transform includes a rotation, the result is the axis-aligned bounding box of the rotated rectangle, not the rotated rectangle itself.
Source: FontLab Proteus API documentation
scale
instance-attribute
scale: Any
double
The uniform scale factor extracted from the matrix. If X and Y are scaled by the same amount (e.g. scale(2.0, 2.0)), this returns that factor. For non-uniform scales this returns an approximation.
Source: FontLab Proteus API documentation
transform
instance-attribute
transform: Any
QTransform
The underlying Qt transform matrix. Read it to inspect the matrix values; write a new QTransform to replace the entire matrix at once.
Source: FontLab Proteus API documentation
translate
translate(x: Any, y: float) -> None
void translate(QPointF | double x, double y)
Add a translation (move) to this transform. This modifies the transform in place — the x/y values are added to any existing translation.
Source: FontLab Proteus API documentation