Sign in Join
FPDoc Onlineexperiment

TFontQuality enumeration

In unit Graphics

Font output quality, like anti-aliasing.

Declaration

pascal
TFontQuality = (fqDefault,fqDraft,fqProof,fqNonAntialiased,
 fqAntialiased,fqCleartype,fqCleartypeNatural)

Description

TFontQuality is an enumerated type with values that represent the output quality for fonts. Values in the enumeration control how carefully font attributes are applied to output using a font.

There are situations where an enumeration value may not produce the desired result. ClearType and ClearTypeNatural anti-aliasing algorithms are oriented to display usage. They cannot be applied to printed output in general. They are ignored for fonts that are not TrueType or OpenType fonts with TrueType outlines. Postscript Type 1 fonts, and Postscript OpenType fonts without TrueType outlines, do not use ClearType anti-aliasing. Bitmap, vector, and device fonts cannot use ClearType anti-aliasing. Fonts which contain embedded bitmaps, like most East Asian fonts, do not use ClearType anti-aliasing.

TFontQuality is the type used to implement the Quality member in TFontData and TFont.

Modified in LCL 3.0 to be an alias to TFontQuality in System.UITypes for FPC 3.3.0 or higher.

See also

Values

fqDefaultDefault font quality; used when appearance is not important.
fqDraftPrefer other font features (size, style) against output quality. Appearance of the font is less important than when fqProof is used. Generally offers lower quality than fqProof or fqDefault.
fqProofPrefer output quality against other font features (size, style). Font quality is more important exactly reproducing the size or style for the font.
fqNonAntialiasedDisable font anti-aliasing.
fqAntialiasedUse font anti-aliasing. The font is always anti-aliased when supported, and the font size is not too small or too large.
fqCleartypeUse ClearType font anti-aliasing when available.
fqCleartypeNaturalUse Clear Type Natural font anti-aliasing when available.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.