OpenTTD Source: src/os/windows/font_win32.h File Reference

OpenTTD Source 14.0-RC3

Data Structures | Functions
font_win32.h File Reference
`#include "../../fontcache/truetypefontcache.h"`
`#include "win32.h"`
`#include <windows.h>`

Go to the source code of this file.

## Data Structures
class | Win32FontCache
| Font cache for fonts that are based on a Win32 font. More...

## Functions
void | LoadWin32Font (FontSize fs)
| Loads the GDI font. More...
void | LoadWin32Font (FontSize fs, const std::string &file_name, uint size)
| Load a TrueType font from a file. More...

## Detailed Description

Functions related to font handling on Win32.

Definition in file font_win32.h.

## Function Documentation

## ◆ LoadWin32Font() [1/2]

void LoadWin32Font | ( | FontSize | fs | ) |

Loads the GDI font.

If a GDI font description is present, e.g. from the automatic font fallback search, use it. Otherwise, try to resolve it by font name.

Parameters

  fs | The font size to load.

Definition at line 386 of file font_win32.cpp.

References FS_MONO, GetFontCacheSubSetting(), MemSetT(), and settings.

## ◆ LoadWin32Font() [2/2]

void LoadWin32Font | ( | FontSize | fs,
|  | const std::string & | file_name,
|  | uint | size
| ) |  |

Load a TrueType font from a file.

Parameters

  fs | The font size to load.
  file_name | Path to the font file.
  size | Requested font size.

Definition at line 423 of file font_win32.cpp.

References FS_MONO, and MemSetT().