Package org.apache.fop.fonts.truetype
Enum GlyfTable.GlyfFlags
- All Implemented Interfaces:
Serializable
,Comparable<GlyfTable.GlyfFlags>
,java.lang.constant.Constable
- Enclosing class:
- GlyfTable
-
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 TypeMethodDescriptionstatic int
getOffsetToNextComposedGlyf
(int flags) Calculates, from the given flags, the offset to the next glyph index.static boolean
hasMoreComposites
(int flags) Checks the given flags to see if there is another composed glyph.static GlyfTable.GlyfFlags
Returns the enum constant of this type with the specified name.static GlyfTable.GlyfFlags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARG_1_AND_2_ARE_WORDS
-
ARGS_ARE_XY_VALUES
-
ROUND_XY_TO_GRID
-
WE_HAVE_A_SCALE
-
RESERVED
-
MORE_COMPONENTS
-
WE_HAVE_AN_X_AND_Y_SCALE
-
WE_HAVE_A_TWO_BY_TWO
-
WE_HAVE_INSTRUCTIONS
-
USE_MY_METRICS
-
OVERLAP_COMPOUND
-
SCALED_COMPONENT_OFFSET
-
UNSCALED_COMPONENT_OFFSET
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOffsetToNextComposedGlyf
public static int getOffsetToNextComposedGlyf(int flags) Calculates, from the given flags, the offset to the next glyph index.- Parameters:
flags
- the glyph data flags- Returns:
- offset to the next glyph if any, or 0
-
hasMoreComposites
public static boolean hasMoreComposites(int flags) Checks the given flags to see if there is another composed glyph.- Parameters:
flags
- the glyph data flags- Returns:
- true if there is another composed glyph, otherwise false.
-