TCustomRVFontInfo.CharScale [VCL and LCL]

<< Click to display table of contents >>

TCustomRVFontInfo.CharScale [VCL and LCL]

Horizontal character scaling value for text of this style, %

property CharScale: Integer;

(Introduced in version 1.5)

By default, value of this property is equal to 100%, and text of this style is displayed with normal proportions. Set it to larger value to make characters wider, and to lesser value to make them narrower.

This value does not affect the height of text.

Example:

This example shows text formatted with CharScale = 100, 150, and 80.

CharScale Example

CharScale Example

Warning: the standard Delphi TFont class does not support character scaling. So be careful if you want to use this value in combination with custom drawing. Any changes of RichView's Canvas.TFont will reset font scaling to default.

Note: this property is ignored in FireMonkey version

Default value:

100