MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / LoadFont

Function LoadFont

src/openrct2/interface/Fonts.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137#ifndef DISABLE_TTF
138static bool LoadFont(LocalisationService& localisationService, TTFFontSetDescriptor* font)
139{
140 TTFDispose();
141 localisationService.UseTrueTypeFont(true);
142
143 gCurrentTTFFontSet = font;
144
145 bool fontInitialised = TTFInitialise();
146 return fontInitialised;
147}
148
149static bool LoadCustomConfigFont(LocalisationService& localisationService)
150{

Callers 1

TryLoadFontsFunction · 0.85

Calls 3

TTFDisposeFunction · 0.85
TTFInitialiseFunction · 0.85
UseTrueTypeFontMethod · 0.80

Tested by

no test coverage detected