OpenTTD Source 20260421-master-gc2fbc6fdeb
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.
std::any os_handle
 Optional native OS font info.

Detailed Description

Settings for a single font.

Definition at line 190 of file fontcache.h.

Field Documentation

◆ font

std::string FontCacheSubSetting::font

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

Definition at line 191 of file fontcache.h.

Referenced by FontCache::AddFallback(), ConFont(), and IsDefaultFont().

◆ os_handle

std::any FontCacheSubSetting::os_handle

Optional native OS font info.

Definition at line 194 of file fontcache.h.

Referenced by FontCache::AddFallback(), and IsDefaultFont().

◆ size

uint FontCacheSubSetting::size

The (requested) size of the font.

Definition at line 192 of file fontcache.h.

Referenced by ConFont(), and GetFontCacheFontSize().


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