Package org.freedesktop.harfbuzz
Enum Class StyleTag
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<StyleTag>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum StyleTag
extends Enum<StyleTag>
implements Enumeration
Defined by OpenType Design-Variation Axis Tag Registry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsed to vary between non-italic and italic.Used to vary design to suit different text sizes.Used to vary between upright and slanted text.same asHBSTYLETAGSLANTANGLE
expression as ratio.Used to vary stroke thicknesses or other design details to give variation from lighter to blacker.Used to vary width of text from narrower to wider. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the StyleTag classint
getValue()
Get the numeric value of this enumstatic StyleTag
of
(int value) Create a new StyleTag for the provided valuestatic StyleTag
Returns the enum constant of this class with the specified name.static StyleTag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ITALIC
Used to vary between non-italic and italic. A value of 0 can be interpreted as "Roman" (non-italic); a value of 1 can be interpreted as (fully) italic. -
OPTICAL_SIZE
Used to vary design to suit different text sizes. Non-zero. Values can be interpreted as text size, in points. -
SLANT_ANGLE
Used to vary between upright and slanted text. Values must be greater than -90 and less than +90. Values can be interpreted as the angle, in counter-clockwise degrees, of oblique slant from whatever the designer considers to be upright for that font design. Typical right-leaning Italic fonts have a negative slant angle (typically around -12) -
SLANT_RATIO
same asHBSTYLETAGSLANTANGLE
expression as ratio. Typical right-leaning Italic fonts have a positive slant ratio (typically around 0.2) -
WIDTH
Used to vary width of text from narrower to wider. Non-zero. Values can be interpreted as a percentage of whatever the font designer considers “normal width” for that font design. -
WEIGHT
Used to vary stroke thicknesses or other design details to give variation from lighter to blacker. Values can be interpreted in direct comparison to values for usWeightClass in the OS/2 table, or the CSS font-weight property.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new StyleTag for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-