- All Implemented Interfaces:
Serializable
,Comparable<HintStyle>
,Constable
Specifies the type of hinting to do on font outlines. Hinting is the process
of fitting outlines to the pixel grid in order to improve the appearance of
the result. Since hinting outlines involves distorting them, it also reduces
the faithfulness to the original outline shapes. Not all of the outline
hinting styles are supported by all font backends.
New entries may be added in future versions.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse the default hint style for font backend and target deviceHint outlines to maximize contrastHint outlines with medium strength giving a compromise between fidelity to the original shapes and contrastDo not hint outlinesHint outlines slightly to improve contrast while retaining good fidelity to the original shapes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gnome.glib.Type
getType()
Get the CairoHintStyle GTypeint
getValue()
Return the value of this enumstatic HintStyle
of
(int ordinal) Returns the enum constant for the given ordinal (its position in the enum declaration).static HintStyle
Returns the enum constant of this class with the specified name.static HintStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use the default hint style for font backend and target device- Since:
- 1.0
-
NONE
-
SLIGHT
Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes- Since:
- 1.0
-
MEDIUM
Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast- Since:
- 1.0
-
FULL
-
-
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
-
getValue
public int getValue()Return the value of this enum- Returns:
- the value
-
of
Returns the enum constant for the given ordinal (its position in the enum declaration).- Parameters:
ordinal
- the position in the enum declaration, starting from zero- Returns:
- the enum constant for the given ordinal
-
getType
public static org.gnome.glib.Type getType()Get the CairoHintStyle GType- Returns:
- the GType
-