ZVISION: Fix detection of Windows fonts

This commit is contained in:
Filippos Karapetis 2015-01-16 03:43:42 +02:00
parent 11e429672e
commit 3fe7c645ed

View File

@ -258,9 +258,18 @@ Common::Error ZVision::run() {
for (int j = 0; j < 4; j++) {
Common::String fontName = curFont.fontBase;
if (fontName == "censcbk" && j > 0)
fontName = "schlbk";
fontName += fontSuffixes[j];
fontName += ".ttf";
if (fontName == "schlbkbd.ttf")
fontName = "schlbkb.ttf";
if (fontName == "garabi.ttf")
continue;
if (fontName == "garai.ttf")
fontName = "garait.ttf";
Common::String freeFontName = curFont.freeFontBase;
freeFontName += freeFontSuffixes[j];
freeFontName += ".ttf";