public enum OpenTypeWidth extends Enum<OpenTypeWidth> implements IEnumValue
Represents the OpenType font width. Indicates a relative change from the normal aspect ratio (width to height ratio) as specified by a font designer for the glyphs in a font.
| Enum Constant and Description |
|---|
Condensed
The Condensed wifth.
|
Expanded
The Expanded wifth.
|
ExtraCondensed
The Extra-condensed wifth.
|
ExtraExpanded
The Extra-expanded wifth.
|
Medium
The Medium (normal) wifth.
|
SemiCondensed
The Semi-condensed wifth.
|
SemiExpanded
The Semi-expanded wifth.
|
UltraCondensed
The Ultra-condensed wifth.
|
UltraExpanded
The Ultra-expanded wifth.
|
Undefined
The undefined wifth.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static OpenTypeWidth |
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.
|
static OpenTypeWidth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenTypeWidth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final OpenTypeWidth Condensed
The Condensed wifth.
public static final OpenTypeWidth Expanded
The Expanded wifth.
public static final OpenTypeWidth ExtraCondensed
The Extra-condensed wifth.
public static final OpenTypeWidth ExtraExpanded
The Extra-expanded wifth.
public static final OpenTypeWidth Medium
The Medium (normal) wifth.
public static final OpenTypeWidth SemiCondensed
The Semi-condensed wifth.
public static final OpenTypeWidth SemiExpanded
The Semi-expanded wifth.
public static final OpenTypeWidth UltraCondensed
The Ultra-condensed wifth.
public static final OpenTypeWidth UltraExpanded
The Ultra-expanded wifth.
public static final OpenTypeWidth Undefined
The undefined wifth.
public Object[] getAllValues()
IEnumValueReturns the array of all values defined in the class.
getAllValues in interface IEnumValuepublic static OpenTypeWidth getByRawValue(int rawValue)
public IEnumValue getEnumValueByName(String name)
IEnumValueReturns the enumeration value by its name.
getEnumValueByName in interface IEnumValuename - The name of the enumeration value.public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValueReturns the enumeration value by the raw value associated with it.
getEnumValueByRawValue in interface IEnumValuerawValue - The raw value.public static IEnumValue getFirst()
public int getRawValue()
IEnumValueReturns the raw value of this enumeration value.
getRawValue in interface IEnumValuepublic RawIntegerType getRawValueType()
IEnumValueReturns the underlying type of the raw value of this enumeration value.
getRawValueType in interface IEnumValuepublic static OpenTypeWidth valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static OpenTypeWidth[] values()
for (OpenTypeWidth c : OpenTypeWidth.values()) System.out.println(c);
Copyright © 2026. All rights reserved.