Represents a single OpenType font feature setting. More...
Public Member Functions | |
constexpr | FontFeatureSetting (FontFeatureTag featureTag, uint32 featureValue) noexcept |
Constructs a feature setting with the specified tag and optional value. | |
constexpr bool | operator< (const FontFeatureSetting &other) const |
constexpr bool | operator<= (const FontFeatureSetting &other) const |
constexpr bool | operator> (const FontFeatureSetting &other) const |
constexpr bool | operator>= (const FontFeatureSetting &other) const |
constexpr bool | operator== (const FontFeatureSetting &other) const |
constexpr bool | operator!= (const FontFeatureSetting &other) const |
Public Attributes | |
FontFeatureTag | tag |
The OpenType feature tag. | |
uint32 | value |
The value for this feature. | |
Static Public Attributes | |
static constexpr auto | featureEnabled = 1 |
Common feature values for convenience. | |
static constexpr auto | featureDisabled = 0 |
Disable this feature (value=0). | |
Represents a single OpenType font feature setting.
A font feature setting combines a FontFeatureTag with an optional value that controls the behavior of that feature. For example, a 'liga' (standard ligatures) feature can be enabled (value=1) or disabled (value=0), while other features like 'salt' (stylistic alternates) might accept a range of values to select specific alternates.
|
constexprnoexcept |
Constructs a feature setting with the specified tag and optional value.
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
nodiscardconstexpr |
References FontFeatureSetting().
|
staticconstexpr |
Common feature values for convenience.
Enable this feature (value=1).
Referenced by FontOptions::withFeatureEnabled().
|
staticconstexpr |
Disable this feature (value=0).
Referenced by FontOptions::withFeatureDisabled().
FontFeatureTag FontFeatureSetting::tag |
The OpenType feature tag.
Referenced by FontFeatureSetting().
uint32 FontFeatureSetting::value |
The value for this feature.
Common values are 0 (featureDisabled) and 1 (featureEnabled), but some features support additional values for specific behaviors.
Referenced by FontFeatureSetting().