Home/ Reference/ Text

shape.Text.FitToPath?

Text on a path; needs a Path object to go with it.

Signature

shape.Text.FitToPath?

Notes

Text on a path; needs a Path object to go with it.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

# text on a path: you need the text and a curve, then fit one to the other
# API names differ by version; build the template in CorelDRAW and edit content from Python
try:
    fit = shape.Text.FitToPath
    print("FitToPath is available")
except Exception:
    print("No FitToPath in this version; build the template and swap the text")

About this section: Text

Text — artistic and paragraph text.

Other entries in this section