TdxFontOptions.Pitch Property
Specifies if all characters in the current font have the same width.
Declaration
property Pitch: TdxFontPitch read; write;
Property Value
Type | Default | Description |
---|---|---|
TdxFontPitch | Default | The current font pitch. |
Remarks
Every font typeface has an associated pitch. All characters in fixed-pitch fonts have the same width. Characters in variable-pitch fonts have different widths. Fixed-pitch fonts are usually used to display source code while variable-pitch fonts make text appearance more natural.
Refer to the TdxFontPitch type description for information on available options.
Note
If you set the Pitch
property to TdxFontPitch.Variable or TdxFontPitch.Fixed for a fixed-pitch or variable-pitch font, respectively, the operating system selects a font whose glyphs match all specified font settings best. In the majority of cases, Pitch
property value changes have no visual effect.
Default Value
The Pitch
property’s default value is TdxFontPitch.Default. The default value indicates that the operating system displays the current font as is.