MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / loadDefaultFont

Function loadDefaultFont

TheForceEngine/TFE_A11y/accessibility.cpp:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void loadDefaultFont(bool clearAtlas)
195 {
196 char fontpath[TFE_MAX_PATH];
197 snprintf(fontpath, TFE_MAX_PATH, "%s", DEFAULT_FONT);
198 TFE_Paths::mapSystemPath(fontpath);
199 loadFont(fontpath, clearAtlas);
200 }
201
202 // Try to load the font at the given path. If the font doesn't exist or can't be read,
203 // we automatically fall back to the default font.

Callers 1

tryLoadFontFunction · 0.85

Calls 2

loadFontFunction · 0.85
mapSystemPathFunction · 0.50

Tested by

no test coverage detected