Luanti 5.16.0-dev
Loading...
Searching...
No Matches
FontSpec Struct Reference

#include <fontengine.h>

Public Member Functions

 FontSpec (unsigned int font_size, FontMode mode, bool bold, bool italic)
u16 getHash () const

Public Attributes

unsigned int size
FontMode mode
bool bold
bool italic
bool allow_server_media = true

Static Public Attributes

static const unsigned VARIANT_BITS = 3
static const size_t MAX_VARIANTS = FM_MaxMode << VARIANT_BITS

Constructor & Destructor Documentation

◆ FontSpec()

FontSpec::FontSpec ( unsigned int font_size,
FontMode mode,
bool bold,
bool italic )
inline

References bold, italic, mode, and size.

Member Function Documentation

◆ getHash()

u16 FontSpec::getHash ( ) const
inline

References allow_server_media, bold, italic, mode, and VARIANT_BITS.

Referenced by FontEngine::getFont().

Here is the caller graph for this function:

Member Data Documentation

◆ allow_server_media

bool FontSpec::allow_server_media = true

◆ bold

◆ italic

◆ MAX_VARIANTS

const size_t FontSpec::MAX_VARIANTS = FM_MaxMode << VARIANT_BITS
static

◆ mode

◆ size

unsigned int FontSpec::size

◆ VARIANT_BITS

const unsigned FontSpec::VARIANT_BITS = 3
static

Referenced by getHash().


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