OpenTTD Source: Font Class Reference

OpenTTD Source 14.1

Public Member Functions | Data Fields
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. More...

## Data Fields
FontCache * | fc
| 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 75 of file gfx_layout.h.

## Constructor & Destructor Documentation

## ◆ Font()

Font::Font | ( | FontSize | size,
|  | TextColour | colour
| ) |  |

Construct a new font.

Parameters

  size | The font size to use for this font.
  colour | The colour to draw this font in.

Definition at line 47 of file gfx_layout.cpp.

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

- src/gfx_layout.h
- src/gfx_layout.cpp