public enum TextRenderingHintEnum extends Enum<TextRenderingHintEnum>
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 |
---|---|
int |
getType()
Gets the value that represents the type of the enum.
|
static TextRenderingHintEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextRenderingHintEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextRenderingHintEnum 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 TextRenderingHintEnum SingleBitPerPixelGridFit
Each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on stems and curvature.
public static final TextRenderingHintEnum SingleBitPerPixel
Each character is drawn using its glyph bitmap. Hinting is not used.
public static final TextRenderingHintEnum 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 TextRenderingHintEnum 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 TextRenderingHintEnum 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 TextRenderingHintEnum[] values()
for (TextRenderingHintEnum c : TextRenderingHintEnum.values()) System.out.println(c);
public static TextRenderingHintEnum 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 nullpublic int getType()