OpenTTD Source 20251213-master-g1091fa6071
Font Class Reference

Container with information about a font. More...

#include <gfx_layout.h>

Public Member Functions

FontCacheGetFontCache () const
 

Data Fields

FontIndex font_index = INVALID_FONT_INDEX
 The font we are using.
 
TextColour colour = TC_INVALID
 The colour this font has to be.
 

Detailed Description

Container with information about a font.

Definition at line 98 of file gfx_layout.h.

Member Function Documentation

◆ GetFontCache()

FontCache & Font::GetFontCache ( ) const
inline

Definition at line 103 of file gfx_layout.h.

Field Documentation

◆ colour

TextColour Font::colour = TC_INVALID

The colour this font has to be.

Definition at line 101 of file gfx_layout.h.

Referenced by DrawLayoutLine().

◆ font_index

FontIndex Font::font_index = INVALID_FONT_INDEX

The font we are using.

Definition at line 100 of file gfx_layout.h.


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