TdxSpreadSheetCustomFont.Pitch Property
Specifies whether the characters of the font have the same width.
Declaration
property Pitch: TFontPitch read; write; default fpDefault;
Property Value
Type | Default |
---|---|
TFontPitch | fpDefault |
Remarks
Each font typeface has an associated pitch. All characters in fixed-pitch fonts have the same width. The characters in variable-pitch fonts have different widths. Fixed pitch fonts are generally used to display source code, because they allow the indentation to line up properly. Variable pitch fonts are generally used to give text a more natural appearance.
The possible Pitch property values are listed below:
Value | Meaning |
---|---|
fpDefault | The font pitch is set to the default value, which depends on the font’s typeface name assigned by using the Name property. |
fpFixed | The font pitch is set to Fixed. All font characters have the same width. |
fpVariable | The font pitch is set to Variable. Font characters have varying widths. |
The default value of the Pitch property is fpDefault.
See Also