1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix font config loaded without proper configuration (#3602)

This commit is contained in:
YJSoft
2016-05-15 18:29:26 +09:00
committed by Ted John
parent 8c1395bd46
commit f5b208d629

View File

@@ -175,7 +175,7 @@ bool language_open(int id)
gUseTrueTypeFont = false;
gCurrentTTFFontSet = nullptr;
} else {
if (gConfigFonts.file_name != nullptr) {
if (!String::IsNullOrEmpty(gConfigFonts.file_name)) {
static TTFFontSetDescriptor TTFFontCustom = {{
{ gConfigFonts.file_name, gConfigFonts.font_name, gConfigFonts.size_tiny, gConfigFonts.x_offset, gConfigFonts.y_offset, gConfigFonts.height_tiny, nullptr },
{ gConfigFonts.file_name, gConfigFonts.font_name, gConfigFonts.size_small, gConfigFonts.x_offset, gConfigFonts.y_offset, gConfigFonts.height_small, nullptr },