Represents a single OpenType variable font setting.
This allows for precise typographic control, enabling smooth transitions between different font styles without requiring separate font files for each variation.
Supported settings and ranges can be queried with Typeface::getSupportedVariables.
Public Member Functions | |
| constexpr | FontVariableSetting (FontFeatureTag variableTag, float variableValue) noexcept |
| Constructs a variable font setting with the specified variable tag and value. | |
| constexpr bool | operator< (const FontVariableSetting &other) const |
| constexpr bool | operator<= (const FontVariableSetting &other) const |
| constexpr bool | operator> (const FontVariableSetting &other) const |
| constexpr bool | operator>= (const FontVariableSetting &other) const |
| constexpr bool | operator!= (const FontVariableSetting &other) const |
| constexpr bool | operator== (const FontVariableSetting &other) const |
Public Attributes | |
| FontFeatureTag | tag |
| The OpenType variation axis tag. | |
| float | value |
| The value for this axis. | |
|
inlineconstexprnoexcept |
Constructs a variable font setting with the specified variable tag and value.
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
nodiscardconstexpr |
References FontVariableSetting().
|
nodiscardconstexpr |
References FontVariableSetting().
|
nodiscardconstexpr |
References FontVariableSetting().
|
nodiscardconstexpr |
References FontVariableSetting().
|
nodiscardconstexpr |
References FontVariableSetting().
|
nodiscardconstexpr |
References FontVariableSetting().
| FontFeatureTag juce::FontVariableSetting::tag |
The OpenType variation axis tag.
Referenced by FontVariableSetting().
| float juce::FontVariableSetting::value |
The value for this axis.
Referenced by FontVariableSetting().