public final class OpenTypeFlags extends Object implements IEnumValue
Represents OpenType font header flags.
Modifier and Type | Field and Description |
---|---|
static OpenTypeFlags |
AlterAdvanceWidth
Instructions may alter advance width (the advance widths might not scale linearly).
|
static OpenTypeFlags |
BaselineAtY0
Baseline for font at y=0.
|
static OpenTypeFlags |
Converted
Font converted (produce compatible metrics).
|
static OpenTypeFlags |
DependOnPointSize
Instructions may depend on point size.
|
static OpenTypeFlags |
ForceToInteger
Force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear.
|
static OpenTypeFlags |
LeftSidebearingAtX0
Left sidebearing point at x=0 (relevant only for TrueType rasterizers).
|
static OpenTypeFlags |
Lossless
Font data is “lossless” as a result of having been subjected to optimizing transformation and/or compression.
|
static OpenTypeFlags |
None
Undefined, no flags.
|
static OpenTypeFlags |
Optimized
Font optimized for ClearType™.
|
static OpenTypeFlags |
Resort
Last Resort font.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static OpenTypeFlags |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
int |
hashCode() |
String |
name()
Returns the name of this enumeration value.
|
public static final OpenTypeFlags None
Undefined, no flags.
public static final OpenTypeFlags BaselineAtY0
Baseline for font at y=0.
public static final OpenTypeFlags LeftSidebearingAtX0
Left sidebearing point at x=0 (relevant only for TrueType rasterizers).
public static final OpenTypeFlags DependOnPointSize
Instructions may depend on point size.
public static final OpenTypeFlags ForceToInteger
Force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear.
public static final OpenTypeFlags AlterAdvanceWidth
Instructions may alter advance width (the advance widths might not scale linearly).
public static final OpenTypeFlags Lossless
Font data is “lossless” as a result of having been subjected to optimizing transformation and/or compression.
public static final OpenTypeFlags Converted
Font converted (produce compatible metrics).
public static final OpenTypeFlags Optimized
Font optimized for ClearType™.
public static final OpenTypeFlags Resort
Last Resort font.
public static OpenTypeFlags getByRawValue(int rawValue)
public static IEnumValue getFirst()
public Object[] getAllValues()
IEnumValue
Returns the array of all values defined in the class.
getAllValues
in interface IEnumValue
public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValue
Returns the enumeration value by the raw value associated with it.
getEnumValueByRawValue
in interface IEnumValue
rawValue
- The raw value.public IEnumValue getEnumValueByName(String name)
IEnumValue
Returns the enumeration value by its name.
getEnumValueByName
in interface IEnumValue
name
- The name of the enumeration value.public RawIntegerType getRawValueType()
IEnumValue
Returns the underlying type of the raw value of this enumeration value.
getRawValueType
in interface IEnumValue
public int getRawValue()
IEnumValue
Returns the raw value of this enumeration value.
getRawValue
in interface IEnumValue
public String name()
IEnumValue
Returns the name of this enumeration value.
name
in interface IEnumValue