Home/ Reference/ Pitfalls

ConvertToCurves is irreversible

After ConvertToCurves every text property is gone, and a wrong font is baked in permanently. Verify the font first.

Symptom

ConvertToCurves is irreversible

Notes

After ConvertToCurves every text property is gone, and a wrong font is baked in permanently. Verify the font first.

Python example (runnable)

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

print("Type before converting: ", shape.Type)      # 6 = text

# converting curves is irreversible, confirm the font first
if shape.Text.Story.Characters.All.Font == "Source Han Sans Bold":
    shape.ConvertToCurves()
    print("Type after converting: ", shape.Type)  # 3 = curve
else:
    print("Wrong font; fix it before converting to curves")

About this section: Pitfalls

Pitfalls — errors that fail without raising.

Other entries in this section