Package org.apache.fop.fonts.truetype
Enum Class GlyfTable.GlyfFlags
- All Implemented Interfaces:
Serializable
,Comparable<GlyfTable.GlyfFlags>
,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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final int
-
Constructor Summary
Constructors -
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 class with the specified name.static GlyfTable.GlyfFlags[]
values()
Returns an array containing the constants of this enum class, 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
-
-
Field Details
-
bitMask
private final int bitMask -
argsCountIfSet
private final int argsCountIfSet -
argsCountIfNotSet
private final int argsCountIfNotSet
-
-
Constructor Details
-
GlyfFlags
private GlyfFlags(int argsCountIfSet, int argsCountIfNotSet) -
GlyfFlags
private GlyfFlags(int argsCountIfSet) -
GlyfFlags
private GlyfFlags()
-
-
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
-
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.
-