RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextAttributes.Pitch Property

Specifies whether the characters in the font all have the same width.

Pascal
property Pitch: TFontPitch;
C++
__property TFontPitch Pitch;

Each typeface has an associated pitch. The characters in fixed-pitch fonts are all the same width. The characters in variable-pitch fonts differ in width. Fixed pitch fonts are generally used for representing source code, because they allow the indentation to line up properly. Variable pitch fonts are generally used to give text a more natural appearance. 

Here are the possible values for Pitch:

Value 
Meaning 
fpDefault  
The font pitch is set to the default value, which depends on the font specified in the Name property.  
fpFixed  
The font pitch is set to fixed. All characters in the font have the same width.  
fpVariable  
The font pitch is set to variable. The characters in the font have different widths.  

Note: Setting the Pitch of a fixed-pitch font to fpVariable or a variable-pitch font to fpFixed will cause Windows to find what it considers the best match to all of the font characteristics that have been specified. This might have no effect on the appearance of a font, or might cause Windows to substitute a different font with the appropriate pitch. For example, setting the pitch of MS Serif (a variable-pitch font) to fpFixed causes Courier to be displayed.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!