| 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. |
no test coverage detected