public enum TextRenderingHint extends Enum<TextRenderingHint>
Specifies the quality of text rendering.
Enum Constant and Description |
---|
AntiAlias
Each character is drawn using its antialiased glyph bitmap without hinting.
|
AntiAliasGridFit
Each character is drawn using its antialiased glyph bitmap with hinting.
|
ClearTypeGridFit
Each character is drawn using its glyph ClearType bitmap with hinting.
|
SingleBitPerPixel
Each character is drawn using its glyph bitmap.
|
SingleBitPerPixelGridFit
Each character is drawn using its glyph bitmap.
|
SystemDefault
Each character is drawn using its glyph bitmap, with the system default rendering hint.
|
Modifier and Type | Method and Description |
---|---|
static TextRenderingHint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextRenderingHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextRenderingHint SystemDefault
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.
public static final TextRenderingHint SingleBitPerPixelGridFit
Each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on stems and curvature.
public static final TextRenderingHint SingleBitPerPixel
Each character is drawn using its glyph bitmap. Hinting is not used.
public static final TextRenderingHint AntiAliasGridFit
Each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to antialiasing, but at a higher performance cost.
public static final TextRenderingHint AntiAlias
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.
public static final TextRenderingHint ClearTypeGridFit
Each character is drawn using its glyph ClearType bitmap with hinting. The highest quality setting. Used to take advantage of ClearType font features.
public static TextRenderingHint[] values()
for (TextRenderingHint c : TextRenderingHint.values()) System.out.println(c);
public static TextRenderingHint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Aspose. All Rights Reserved.