JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::FontVariableSetting Class Referencefinal

Represents a single OpenType variable font setting. More...

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.
 

Detailed Description

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.

See also
FontFeatureTag, FontOptions, Font, Typeface

Constructor & Destructor Documentation

◆ FontVariableSetting()

constexpr juce::FontVariableSetting::FontVariableSetting ( FontFeatureTag  variableTag,
float  variableValue 
)
inlineconstexprnoexcept

Constructs a variable font setting with the specified variable tag and value.

Member Function Documentation

◆ operator<()

constexpr bool juce::FontVariableSetting::operator< ( const FontVariableSetting &  other) const
constexpr

◆ operator<=()

constexpr bool juce::FontVariableSetting::operator<= ( const FontVariableSetting &  other) const
constexpr

◆ operator>()

constexpr bool juce::FontVariableSetting::operator> ( const FontVariableSetting &  other) const
constexpr

◆ operator>=()

constexpr bool juce::FontVariableSetting::operator>= ( const FontVariableSetting &  other) const
constexpr

◆ operator!=()

constexpr bool juce::FontVariableSetting::operator!= ( const FontVariableSetting &  other) const
constexpr

◆ operator==()

constexpr bool juce::FontVariableSetting::operator== ( const FontVariableSetting &  other) const
constexpr

Member Data Documentation

◆ tag

FontFeatureTag juce::FontVariableSetting::tag

The OpenType variation axis tag.

◆ value

float juce::FontVariableSetting::value

The value for this axis.


The documentation for this class was generated from the following file: