Represents a single OpenType font feature setting. More...
#include <juce_FontFeatures.h>

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 | featureDisabled = 0 |
| Disable this feature (value=0). | |
| static constexpr auto | featureEnabled = 1 |
| Common feature values for convenience. | |
Private Member Functions | |
| constexpr auto | tie () const |
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.
@tags{Graphics}
|
inlineconstexprnoexcept |
Constructs a feature setting with the specified tag and optional value.
|
inlineconstexpr |
References tie().
|
inlineconstexpr |
References tie().
|
inlineconstexpr |
References tie().
|
inlineconstexpr |
References tie().
|
inlineconstexpr |
References tie().
|
inlineconstexpr |
References tie().
|
inlineconstexprprivate |
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
staticconstexpr |
Disable this feature (value=0).
|
staticconstexpr |
Common feature values for convenience.
Enable this feature (value=1).
| FontFeatureTag juce::FontFeatureSetting::tag |
The OpenType feature tag.
| 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.