Home/ Reference/ Text

shape.Text.Story.CharSpacing

Character spacing, as a percentage. 180 means 180%, loose; 50 tightens. This is how you open up a Chinese heading.

Signature

shape.Text.Story.CharSpacing

Notes

Character spacing, as a percentage. 180 means 180%, loose; 50 tightens. This is how you open up a Chinese heading.

Python example (runnable)

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

story.CharSpacing = 180             # character spacing as a percentage: 180 = 180%
print("Character spacing: ", story.CharSpacing)

# rule of thumb: few characters get 180, crowded lines get 50
n = len(shape.Text.Contents.strip())
story.CharSpacing = 180 if n <= 10 else 50
print("Auto-adjusted spacing: ", story.CharSpacing)

About this section: Text

Text — artistic and paragraph text.

Other entries in this section