Skip to content

Commit

Permalink
ZVISION: Fix detection of Windows fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jan 16, 2015
1 parent 11e4296 commit 3fe7c64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engines/zvision/zvision.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 3fe7c64

Please sign in to comment.