diff options
author | Filippos Karapetis | 2015-01-16 03:43:42 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-16 03:43:42 +0200 |
commit | 3fe7c645ed11d57cc5f7e1da588fb43cfe1affa3 (patch) | |
tree | c56a17bc0421dc504ed3b3fca474e00bb01756e8 /engines/zvision | |
parent | 11e429672e59f69a67820c937269026f651d4998 (diff) | |
download | scummvm-rg350-3fe7c645ed11d57cc5f7e1da588fb43cfe1affa3.tar.gz scummvm-rg350-3fe7c645ed11d57cc5f7e1da588fb43cfe1affa3.tar.bz2 scummvm-rg350-3fe7c645ed11d57cc5f7e1da588fb43cfe1affa3.zip |
ZVISION: Fix detection of Windows fonts
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/zvision.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index f9973d2280..3085a79de8 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -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"; |