OpenTypeWeight
Inheritance: java.lang.Object, java.lang.Enum
All Implemented Interfaces: com.groupdocs.metadata.core.IEnumValue
public enum OpenTypeWeight extends Enum<OpenTypeWeight> implements IEnumValue
Represents the OpenType font weight. Indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the font. Values from 1 to 1000 are valid.
Fields
Field | Description |
---|---|
Undefined | The undefined weight. |
Thin | The Thin weight. |
ExtraLight | The Extra-light (Ultra-light) weight. |
Light | The Light weight. |
Normal | The Normal (Regular) weight. |
Medium | The Medium weight. |
SemiBold | The Semi-bold (Demi-bold) weight. |
Bold | The Bold weight. |
ExtraBold | The Extra-bold (Ultra-bold) weight. |
Heavy | The Black (Heavy) weight. |
Methods
Undefined
public static final OpenTypeWeight Undefined
The undefined weight.
Thin
public static final OpenTypeWeight Thin
The Thin weight.
ExtraLight
public static final OpenTypeWeight ExtraLight
The Extra-light (Ultra-light) weight.
Light
public static final OpenTypeWeight Light
The Light weight.
Normal
public static final OpenTypeWeight Normal
The Normal (Regular) weight.
Medium
public static final OpenTypeWeight Medium
The Medium weight.
SemiBold
public static final OpenTypeWeight SemiBold
The Semi-bold (Demi-bold) weight.
Bold
public static final OpenTypeWeight Bold
The Bold weight.
ExtraBold
public static final OpenTypeWeight ExtraBold
The Extra-bold (Ultra-bold) weight.
Heavy
public static final OpenTypeWeight Heavy
The Black (Heavy) weight.
values()
public static OpenTypeWeight[] values()
Returns: com.groupdocs.metadata.core.OpenTypeWeight[]
valueOf(String name)
public static OpenTypeWeight valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: OpenTypeWeight
getByRawValue(int rawValue)
public static OpenTypeWeight getByRawValue(int rawValue)
Parameters:
Parameter | Type | Description |
---|---|---|
rawValue | int |
Returns: OpenTypeWeight
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