Loading...
Searching...
No Matches
juce::FontVariableSetting Class Referencefinal

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

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

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.

Constructors and Destructors

◆ FontVariableSetting()

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

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

References tag, and value.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

Member Functions

◆ operator<()

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

References FontVariableSetting().

◆ operator<=()

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

References FontVariableSetting().

◆ operator>()

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

References FontVariableSetting().

◆ operator>=()

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

References FontVariableSetting().

◆ operator!=()

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

References FontVariableSetting().

◆ operator==()

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

References FontVariableSetting().

Member Data Documentation

◆ tag

FontFeatureTag juce::FontVariableSetting::tag

The OpenType variation axis tag.

Referenced by FontVariableSetting().

◆ value

float juce::FontVariableSetting::value

The value for this axis.

Referenced by FontVariableSetting().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram