This documentation is archived and is not being maintained.

TextRenderingHint Enumeration

Specifies the quality of text rendering.

[Visual Basic]
<Serializable>
Public Enum TextRenderingHint
[C#]
[Serializable]
public enum TextRenderingHint
[C++]
[Serializable]
__value public enum TextRenderingHint
[JScript]
public
   Serializable
enum TextRenderingHint

Remarks

The quality ranges from text (fastest performance and lowest quality) to antialiased text (better quality but slower performance) to ClearType text (best quality on an LCD display).

Members

Member name Description
AntiAlias Specifies that each character is drawn using its antialiased glyph bitmap without hinting. Better quality due to antialiasing. Stem width differences may be noticeable because hinting is turned off.
AntiAliasGridFit Specifies that each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to antialiasing, but at a higher performance cost.
ClearTypeGridFit Specifies that each character is drawn using its glyph CT bitmap with hinting. The highest quality setting. Used to take advantage of ClearType font features.
SingleBitPerPixel Specifies that each character is drawn using its glyph bitmap. Hinting is not used.
SingleBitPerPixelGridFit Specifies that each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on stems and curvature.
SystemDefault Specifies that each character is drawn using its glyph bitmap, with the system default rendering hint. The text will be drawn using whatever font smoothing settings the user has selected for the system.

Requirements

Namespace: System.Drawing.Text

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

System.Drawing.Text Namespace

Show: