Skip to content
Discussion options

You must be logged in to vote

The render base point is always (0, 0) but the functions of the text2path add-on return Path objects, which have a transform() method.

The transformation matrix can be composed from multiple Matrix44 instances by multiplying them or use the Matrix.chain() class-method or the helper function ezdxf.math.basic_transformation(). Always follow the order: scale, rotate, move.

from ezdxf.math import Matrix44, basic_transformation
from ezdxf.addons import text2path
from ezdxf import path

# create transformation matrix m
m = Matrix44.chain(Matrix44.scale(...), Matrix44.z_rotate(...), Matrix44.translate(...))

# helper function to create a transformation matrix:
m = basic_transformation(move=..., s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shine-flower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #701 on July 07, 2022 11:40.