PINK: Don't delete hebrew font in Screen

This commit is contained in:
Avijeet 2022-06-27 19:44:47 +05:30 committed by Eugene Sandulenko
parent 01d264569c
commit afaef26fde

View File

@ -106,15 +106,15 @@ Screen::Screen(PinkEngine *vm)
_wm->setEngineRedrawCallback(this, redrawCallback);
_textFont = nullptr;
_textFontCleanup = true;
#ifdef USE_FREETYPE2
if (vm->getLanguage() == Common::HE_ISR) {
_textFont = _wm->_fontMan->getFont(Graphics::MacFont(Graphics::kMacFontChicago, 12, Graphics::kMacFontRegular));
_textFontCleanup = false;
} else {
_textFont = Graphics::loadTTFFontFromArchive("system.ttf", 16);
}
#endif
_textFontCleanup = true;
if (!_textFont) {
_textFont = FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);