Home/ Reference/ TextRange

rng.CharSpacing

Character spacing percentage. More precise than setting it on the Story, because it can apply to part of the text.

Signature

rng.CharSpacing

Notes

Character spacing percentage. More precise than setting it on the Story, because it can apply to part of the text.

Python example (runnable)

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

# spacing on a character range is finer than on Story; it can hit part of a run
shape.Text.Range(1, 3).CharSpacing = 200
print("First three characters spaced out")

About this section: TextRange

TextRange — character ranges inside a text object.

Other entries in this section