TCustomRVFontInfo.CharSpacing [VCL and LCL]

<< Click to display table of contents >>

TCustomRVFontInfo.CharSpacing [VCL and LCL]

Specifies intercharacter spacing for text of this style.

property CharSpacing: TRVStyleLength;

(introduced in version 1.6)

This property defines expansion (if positive) or compression (if negative) of space between characters.

This value is measured in Units of TRVStyle component which owns this text style.

Example:

This example shows text formatted with CharSpacing = 0, 5, and -3 pixels.

CharSpacing Example

CharSpacing Example

Note: if TextEngine is Windows API, all expanded characters are aligned to the left side (space is added to the right side of the characters).

if TextEngine is Uniscribe:

characters are aligned to the leading side (left side for left-to-right text, right side for right-to-left text)

kashidas are used for expanded Arabic text

some characters may be grouped in clusters, a total spacing will be applied to the whole cluster; however, the caret positions are calculated as if there are no clusters.

Note: this property is ignored in FireMonkey version

Default value:

0