ULTIMA: Allow engine to build without freetype

Disables TTF support in U8, but otherwise works fine.
This commit is contained in:
Matthew Duggan 2020-10-20 21:47:22 +09:00
parent 5d8f1896fb
commit 883e60abc2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,3 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
add_engine ultima "Ultima" yes "" "" "highres 16bit freetype2 lua"
add_engine ultima "Ultima" yes "" "" "highres 16bit lua"

View File

@ -109,6 +109,7 @@ Graphics::Font *FontManager::getTTF_Font(const Std::string &filename, int points
return nullptr;
}
#ifdef USE_FREETYPE2
// open font using ScummVM TTF API
// Note: The RWops and ReadStream will be deleted by the TTF_Font
Graphics::Font *font = Graphics::loadTTFFont(*fontids, pointsize);
@ -125,6 +126,9 @@ Graphics::Font *FontManager::getTTF_Font(const Std::string &filename, int points
#endif
return font;
#else // !USE_FREETYPE2
return nullptr;
#endif
}
void FontManager::setOverride(unsigned int fontnum, Font *newFont) {