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.
| Enum Constant and Description |
|---|
Bold
The Bold weight.
|
ExtraBold
The Extra-bold (Ultra-bold) weight.
|
ExtraLight
The Extra-light (Ultra-light) weight.
|
Heavy
The Black (Heavy) weight.
|
Light
The Light weight.
|
Medium
The Medium weight.
|
Normal
The Normal (Regular) weight.
|
SemiBold
The Semi-bold (Demi-bold) weight.
|
Thin
The Thin weight.
|
Undefined
The undefined weight.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static OpenTypeWeight |
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 OpenTypeWeight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenTypeWeight[] |
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 OpenTypeWeight Bold
The Bold weight.
public static final OpenTypeWeight ExtraBold
The Extra-bold (Ultra-bold) weight.
public static final OpenTypeWeight ExtraLight
The Extra-light (Ultra-light) weight.
public static final OpenTypeWeight Heavy
The Black (Heavy) weight.
public static final OpenTypeWeight Light
The Light weight.
public static final OpenTypeWeight Medium
The Medium weight.
public static final OpenTypeWeight Normal
The Normal (Regular) weight.
public static final OpenTypeWeight SemiBold
The Semi-bold (Demi-bold) weight.
public static final OpenTypeWeight Thin
The Thin weight.
public static final OpenTypeWeight Undefined
The undefined weight.
public Object[] getAllValues()
IEnumValueReturns the array of all values defined in the class.
getAllValues in interface IEnumValuepublic static OpenTypeWeight 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 OpenTypeWeight 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 OpenTypeWeight[] values()
for (OpenTypeWeight c : OpenTypeWeight.values()) System.out.println(c);
Copyright © 2025. All rights reserved.