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.
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). | |
|
inlineconstexprnoexcept |
Constructs a feature setting with the specified tag and optional value.
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
inlinenodiscardconstexpr |
References FontFeatureSetting().
|
staticconstexpr |
Common feature values for convenience.
Enable this feature (value=1).
Referenced by juce::FontOptions::withFeatureEnabled().
|
staticconstexpr |
Disable this feature (value=0).
Referenced by juce::FontOptions::withFeatureDisabled().
| FontFeatureTag juce::FontFeatureSetting::tag |
The OpenType feature tag.
Referenced by FontFeatureSetting().
| uint32 juce::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().