Package org.apache.poi.hwmf.record
Enum Class HwmfFont.WmfFontQuality
- All Implemented Interfaces:
Serializable
,Comparable<HwmfFont.WmfFontQuality>
,Constable
- Enclosing class:
HwmfFont
The output quality defines how carefully to attempt to match the logical font attributes to those of an actual
physical font.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that anti-aliasing SHOULD be used when rendering text, if the font supports it.Specifies that ClearType anti-aliasing SHOULD be used when rendering text, if the font supports it.Specifies that the character quality of the font does not matter, so DRAFT_QUALITY can be used.Specifies that the character quality of the font is less important than the matching of logical attribuetes.Specifies that anti-aliasing SHOULD NOT be used when rendering text.Specifies that the character quality of the font is more important than the matching of logical attributes. -
Method Summary
Modifier and TypeMethodDescriptionstatic HwmfFont.WmfFontQuality
Returns the enum constant of this class with the specified name.static HwmfFont.WmfFontQuality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_QUALITY
Specifies that the character quality of the font does not matter, so DRAFT_QUALITY can be used. -
DRAFT_QUALITY
Specifies that the character quality of the font is less important than the matching of logical attribuetes. For rasterized fonts, scaling SHOULD be enabled, which means that more font sizes are available. -
PROOF_QUALITY
Specifies that the character quality of the font is more important than the matching of logical attributes. For rasterized fonts, scaling SHOULD be disabled, and the font closest in size SHOULD be chosen. -
NONANTIALIASED_QUALITY
Specifies that anti-aliasing SHOULD NOT be used when rendering text. -
ANTIALIASED_QUALITY
Specifies that anti-aliasing SHOULD be used when rendering text, if the font supports it. -
CLEARTYPE_QUALITY
Specifies that ClearType anti-aliasing SHOULD be used when rendering text, if the font supports it. Fonts that do not support ClearType anti-aliasing include type 1 fonts, PostScript fonts, OpenType fonts without TrueType outlines, rasterized fonts, vector fonts, and device fonts.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-