OpenTypeFlags
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.metadata.core.IEnumValue
public final class OpenTypeFlags implements IEnumValue
Represents OpenType font header flags.
Fields
Field | Description |
---|---|
None | Undefined, no flags. |
BaselineAtY0 | Baseline for font at y=0. |
LeftSidebearingAtX0 | Left sidebearing point at x=0 (relevant only for TrueType rasterizers). |
DependOnPointSize | Instructions may depend on point size. |
ForceToInteger | Force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear. |
AlterAdvanceWidth | Instructions may alter advance width (the advance widths might not scale linearly). |
Lossless | Font data is \u201clossless\u201d as a result of having been subjected to optimizing transformation and/or compression. |
Converted | Font converted (produce compatible metrics). |
Optimized | Font optimized for ClearType\u2122. |
Resort | Last Resort font. |
Methods
None
public static final OpenTypeFlags None
Undefined, no flags.
BaselineAtY0
public static final OpenTypeFlags BaselineAtY0
Baseline for font at y=0.
LeftSidebearingAtX0
public static final OpenTypeFlags LeftSidebearingAtX0
Left sidebearing point at x=0 (relevant only for TrueType rasterizers).
DependOnPointSize
public static final OpenTypeFlags DependOnPointSize
Instructions may depend on point size.
ForceToInteger
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.
AlterAdvanceWidth
public static final OpenTypeFlags AlterAdvanceWidth
Instructions may alter advance width (the advance widths might not scale linearly).
Lossless
public static final OpenTypeFlags Lossless
Font data is \u201clossless\u201d as a result of having been subjected to optimizing transformation and/or compression.
Converted
public static final OpenTypeFlags Converted
Font converted (produce compatible metrics).
Optimized
public static final OpenTypeFlags Optimized
Font optimized for ClearType\u2122.
Resort
public static final OpenTypeFlags Resort
Last Resort font.
getByRawValue(int rawValue)
public static OpenTypeFlags getByRawValue(int rawValue)
Parameters:
Parameter | Type | Description |
---|---|---|
rawValue | int |
Returns: OpenTypeFlags
getFirst()
public static IEnumValue getFirst()
Returns: IEnumValue
getAllValues()
public Object[] getAllValues()
Returns the array of all values defined in the class.
Returns: java.lang.Object[]
getEnumValueByRawValue(int rawValue)
public IEnumValue getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
Parameters:
Parameter | Type | Description |
---|---|---|
rawValue | int |
Returns: IEnumValue
getEnumValueByName(String name)
public IEnumValue getEnumValueByName(String name)
Returns the enumeration value by its name.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: IEnumValue
getRawValueType()
public RawIntegerType getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
Returns: RawIntegerType
getRawValue()
public int getRawValue()
Returns the raw value of this enumeration value.
Returns: int
name()
public String name()
Returns the name of this enumeration value.
Returns: java.lang.String
equals(Object o)
public boolean equals(Object o)
Parameters:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object |
Returns: boolean
hashCode()
public int hashCode()
Returns: int