diff options
author | Bastien Bouclet | 2015-11-22 14:23:23 +0100 |
---|---|---|
committer | Bastien Bouclet | 2015-12-21 18:41:14 +0100 |
commit | 68be74e0a319bb31b9a934b7fd976c8c250b0260 (patch) | |
tree | bc6e1c2419ce69069427186fae4054a38e7f47ac /engines/zvision | |
parent | 2d86f6da9c0ee2ffa80a2b570c148ea337b09cec (diff) | |
download | scummvm-rg350-68be74e0a319bb31b9a934b7fd976c8c250b0260.tar.gz scummvm-rg350-68be74e0a319bb31b9a934b7fd976c8c250b0260.tar.bz2 scummvm-rg350-68be74e0a319bb31b9a934b7fd976c8c250b0260.zip |
ZVISION: Use the cell size mode when loading TrueType fonts
Diffstat (limited to 'engines/zvision')
-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 ed4a81a297..ccb86d9440 100644 --- a/engines/zvision/text/truetype_font.cpp +++ b/engines/zvision/text/truetype_font.cpp @@ -123,7 +123,7 @@ bool StyledTTFont::loadFont(const Common::String &fontName, int32 point, uint st !file.open(freeFontName) && !_engine->getSearchManager()->openFile(file, freeFontName)) error("Unable to open font file %s (Liberation Font alternative: %s, FreeFont alternative: %s)", newFontName.c_str(), liberationFontName.c_str(), freeFontName.c_str()); - Graphics::Font *newFont = Graphics::loadTTFFont(file, point, Graphics::kTTFSizeModeCharacter, 60, (sharp ? Graphics::kTTFRenderModeMonochrome : Graphics::kTTFRenderModeNormal)); // 66 dpi for 640 x 480 on 14" display + Graphics::Font *newFont = Graphics::loadTTFFont(file, point, Graphics::kTTFSizeModeCell, 0, (sharp ? Graphics::kTTFRenderModeMonochrome : Graphics::kTTFRenderModeNormal)); if (newFont == nullptr) { return false; } |