Represents a single OpenType font feature. More...
Public Member Functions | |
constexpr | FontFeatureTag (const char(&string)[5]) |
Constructs a feature from the specified tag string. | |
constexpr | FontFeatureTag (uint32 tagValue) |
Constructs a feature from the specified tag value. | |
String | toString () const |
Returns a string representation of this tag. | |
constexpr uint32 | getTag () const |
Returns the Harfbuzz compatible OpenType tag as an unsigned 32-bit integer. | |
constexpr bool | operator< (FontFeatureTag other) const |
Comparison based on tag value. | |
constexpr bool | operator<= (FontFeatureTag other) const |
Comparison based on tag value. | |
constexpr bool | operator> (FontFeatureTag other) const |
Comparison based on tag value. | |
constexpr bool | operator>= (FontFeatureTag other) const |
Comparison based on tag value. | |
constexpr bool | operator== (FontFeatureTag other) const |
Comparison based on tag value. | |
constexpr bool | operator!= (FontFeatureTag other) const |
Comparison based on tag value. | |
Static Public Member Functions | |
static FontFeatureTag | fromString (const String &tagString) |
Creates a new FontFeature with the specified tag. | |
Represents a single OpenType font feature.
OpenType font features are typographic options that can be enabled or disabled to control text rendering behavior. Each feature is identified by a four-character tag (like 'liga' for standard ligatures or 'smcp' for small caps). These features allow fine-grained control over how text is displayed, including ligatures, number styles, stylistic alternates, and positioning adjustments.
The tag must be exactly 4 characters long.
|
constexpr |
Constructs a feature from the specified tag string.
Referenced by fromString(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
explicitconstexpr |
Constructs a feature from the specified tag value.
|
staticnodiscard |
Creates a new FontFeature with the specified tag.
References FontFeatureTag().
String FontFeatureTag::toString | ( | ) | const |
Returns a string representation of this tag.
|
constexpr |
Returns the Harfbuzz compatible OpenType tag as an unsigned 32-bit integer.
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().
|
nodiscardconstexpr |
Comparison based on tag value.
References FontFeatureTag().