Sign in Join
FPDoc Onlineexperiment

TFontQuality enumeration

In unit System.UITypes

Represents available output quality settings used in a font.

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 given 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 members in TFontData and TFont.

Values

fqDefaultDefault font quality; used when appearance is not important.
fqDraftPrefer other font features (size, style) over 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 over other font features (like size, style). Font quality is more important than exactly reproducing the size or style for the font.
fqNonAntialiasedDisables font anti-aliasing.
fqAntialiasedEnables 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.