From 0d4d5459f27abaac7d41288583acc80b2a5ad9fb Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 6 Oct 2016 07:33:46 +0200 Subject: GRAPHICS: Use Family name instead of font name when reading from BDF fonts --- graphics/macgui/macwindowmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/macgui') 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(); -- cgit v1.2.3