OpenTTD Source 20260218-master-g2123fca5ea
FontCacheSubSetting Struct Reference

Settings for a single font. More...

#include <fontcache.h>

Data Fields

std::string font
 The name of the font, or path to the font.
uint size
 The (requested) size of the font.
const void * os_handle = nullptr
 Optional native OS font info. Only valid during font search.

Detailed Description

Settings for a single font.

Definition at line 184 of file fontcache.h.

Field Documentation

◆ font

std::string FontCacheSubSetting::font

The name of the font, or path to the font.

Definition at line 185 of file fontcache.h.

Referenced by ConFont(), and IsDefaultFont().

◆ os_handle

const void* FontCacheSubSetting::os_handle = nullptr

Optional native OS font info. Only valid during font search.

Definition at line 188 of file fontcache.h.

Referenced by CheckForMissingGlyphs(), and IsDefaultFont().

◆ size

uint FontCacheSubSetting::size

The (requested) size of the font.

Definition at line 186 of file fontcache.h.

Referenced by ConFont(), and GetFontCacheFontSize().


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