- All Implemented Interfaces:
Flag
,Serializable
,Comparable<FTSynthesize>
,Constable
A set of synthesis options to control how FreeType renders the glyphs for a particular font face.
Individual synthesis features of a FTFontFace
can be set using
FTFontFace.setSynthesize(java.util.Set<org.freedesktop.cairo.FTSynthesize>)
, or disabled using FTFontFace.unsetSynthesize(java.util.Set<org.freedesktop.cairo.FTSynthesize>)
.
The currently enabled set of synthesis options can be queried with FTFontFace.getSynthesize()
.
Note that when synthesizing glyphs, the font metrics returned will only be estimates.
- Since:
- 1.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the value of this FTSynthesize enumstatic FTSynthesize
of
(int value) Create an FTSynthesize enum for this valuestatic FTSynthesize
Returns the enum constant of this class with the specified name.static FTSynthesize[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOLD
Embolden the glyphs (redraw with a pixel offset) -
OBLIQUE
Slant the glyph outline by 12 degrees to the right.
-
-
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
-
of
Create an FTSynthesize enum for this value- Parameters:
value
- the value of the enum- Returns:
- a new FTSynthesize enum member
-