diff options
author | Marisa-Chan | 2014-12-24 09:31:02 +0600 |
---|---|---|
committer | Filippos Karapetis | 2014-12-30 01:33:47 +0200 |
commit | 47b90ef3cde832b6314bbcc0321cb074408d944e (patch) | |
tree | 5224ecf2fef8191467c52c651f6a18bf46818898 /engines/zvision/text | |
parent | 45280d035afe29dc1f8971eac713ea1fdb64bfb5 (diff) | |
download | scummvm-rg350-47b90ef3cde832b6314bbcc0321cb074408d944e.tar.gz scummvm-rg350-47b90ef3cde832b6314bbcc0321cb074408d944e.tar.bz2 scummvm-rg350-47b90ef3cde832b6314bbcc0321cb074408d944e.zip |
ZVISION: Search fonts in game directory (e.g. in game/FONTS/)
Diffstat (limited to 'engines/zvision/text')
-rw-r--r-- | engines/zvision/text/truetype_font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/text/truetype_font.cpp b/engines/zvision/text/truetype_font.cpp index f64c0ab3bc..85d9fa5a29 100644 --- a/engines/zvision/text/truetype_font.cpp +++ b/engines/zvision/text/truetype_font.cpp @@ -108,7 +108,7 @@ bool StyledTTFont::loadFont(const Common::String &fontName, int32 point) { bool sharp = (_style & STTF_SHARP) == STTF_SHARP; Common::File file; - if (!file.open(newFontName) && !file.open(freeFontName)) + if (!file.open(newFontName) && !file.open(freeFontName) && !_engine->getSearchManager()->openFile(file, newFontName) && !_engine->getSearchManager()->openFile(file, freeFontName))
error("Unable to open font file %s (free alternative: %s)", newFontName.c_str(), freeFontName.c_str()); Graphics::Font *_newFont = Graphics::loadTTFFont(file, point, 60, (sharp ? Graphics::kTTFRenderModeMonochrome : Graphics::kTTFRenderModeNormal)); // 66 dpi for 640 x 480 on 14" display |