aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-06 07:33:46 +0200
committerEugene Sandulenko2016-10-06 07:33:46 +0200
commit0d4d5459f27abaac7d41288583acc80b2a5ad9fb (patch)
tree298c2c0df13ea8138c49c2b5d2298a703ee00582 /graphics/macgui
parent07316afaa423a95308364290554379491317909d (diff)
downloadscummvm-rg350-0d4d5459f27abaac7d41288583acc80b2a5ad9fb.tar.gz
scummvm-rg350-0d4d5459f27abaac7d41288583acc80b2a5ad9fb.tar.bz2
scummvm-rg350-0d4d5459f27abaac7d41288583acc80b2a5ad9fb.zip
GRAPHICS: Use Family name instead of font name when reading from BDF fonts
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macwindowmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index f0f821d313..a6854663d6 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -348,8 +348,8 @@ void MacWindowManager::loadFonts() {
delete stream;
Common::String fontName;
- if (font->getFaceName() && *font->getFaceName()) {
- fontName = font->getFaceName();
+ if (font->getFamilyName() && *font->getFamilyName()) {
+ fontName = font->getFamilyName();
} else { // Get it from the file name
fontName = (*it)->getName();