导航:  GdiPlus Classes > Enumerations >

TextRenderingHint

上一页返回章节概述下一页

The enumeration specifies the process used to render text. The process affects the quality of the text.

 

C++ Syntax

 

typedef enum {

TextRenderingHintSystemDefault = 0,

TextRenderingHintSingleBitPerPixelGridFit = 1,

TextRenderingHintSingleBitPerPixel = 2,

TextRenderingHintAntiAliasGridFit = 3,

TextRenderingHintAntiAlias = 4,

TextRenderingHintClearTypeGridFit = 5

} TextRenderingHint;

 

FreeBASIC 语法

 

enum

TextRenderingHintSystemDefault            = 0

TextRenderingHintSingleBitPerPixelGridFit = 1

TextRenderingHintSingleBitPerPixel        = 2

TextRenderingHintAntiAliasGridFit         = 3

TextRenderingHintAntiAlias                = 4

TextRenderingHintClearTypeGridFit         = 5

end enum

 

常数

 

TextRenderingHintSystemDefault

 

Specifies that a character is drawn using the currently selected system font smoothing mode (also called a rendering hint).

 

TextRenderingHintSingleBitPerPixelGridFit

 

Specifies that a character is drawn using its glyph bitmap and hinting to improve character appearance on stems and curvature.

 

TextRenderingHintSingleBitPerPixel

 

Specifies that a character is drawn using its glyph bitmap and no hinting. This results in better performance at the expense of quality.

 

TextRenderingHintAntiAliasGridFit

 

Specifies that a character is drawn using its antialiased glyph bitmap and hinting. This results in much better quality due to antialiasing at a higher performance cost.

 

TextRenderingHintAntiAlias

 

Specifies that a character is drawn using its antialiased glyph bitmap and no hinting. Stem width differences may be noticeable because hinting is turned off.

 

TextRenderingHintClearTypeGridFit

 

Specifies that a character is drawn using its glyph Microsoft ClearType bitmap and hinting. This type of text rendering cannot be used along with CompositingModeSourceCopy.

 

Microsoft Windows XP and Windows Server 2003 only: ClearType rendering is supported only on Windows XP and Windows Server 2003. Therefore, TextRenderingHintClearTypeGridFit is ignored on other operating systems even though Windows GDI+ is supported on those operating systems.

 

备注

 

The quality associated with each process varies according to the circumstances. TextRenderingHintClearTypeGridFit provides the best quality for most LCD monitors and relatively small font sizes. TextRenderingHintAntiAlias provides the best quality for rotated text. Generally, a process that produces higher quality text is slower than a process that produces lower quality text.