OpenTTD Source 20260206-master-g4d4e37dbf1
Font Class Reference

Container with information about a font. More...

#include <gfx_layout.h>

Public Member Functions

 Font (FontSize size, TextColour colour)
 Construct a new font.

Data Fields

FontCachefc
 The font we are using.
TextColour colour
 The colour this font has to be.

Detailed Description

Container with information about a font.

Definition at line 97 of file gfx_layout.h.

Constructor & Destructor Documentation

◆ Font()

Font::Font ( FontSize size,
TextColour colour )

Construct a new font.

Parameters
sizeThe font size to use for this font.
colourThe colour to draw this font in.

Definition at line 49 of file gfx_layout.cpp.

References colour, and fc.

Field Documentation

◆ colour

TextColour Font::colour

The colour this font has to be.

Definition at line 100 of file gfx_layout.h.

Referenced by DrawLayoutLine(), and Font().

◆ fc

FontCache* Font::fc

The font we are using.

Definition at line 99 of file gfx_layout.h.

Referenced by DrawLayoutLine(), Font(), HFontFromFont(), and UniscribeShapeRun().


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