From 43a083a117a42879a18ea4c3a5e721d261fb8489 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Thu, 3 Nov 2005 18:20:12 +0000 Subject: -implement font substitution funcs -move puzzle data to itedata svn-id: r19411 --- saga/sfuncs.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'saga/sfuncs.cpp') diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 4fab7ccb66..e81a8106b1 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -1309,7 +1309,7 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) { textEntry.effectColor = kITEColorBlack; textEntry.point.x = _vm->getDisplayWidth() / 2; textEntry.point.y = (_vm->_scene->getHeight() - _vm->_font->getHeight(kMediumFont)) / 2; - textEntry.fontId = kMediumFont; + textEntry.font = kKnownFontMedium; textEntry.flags = (FontEffectFlags)(kFontOutline | kFontCentered); textEntry.text = thread->_strings->getString(stringId); @@ -1591,10 +1591,7 @@ void Script::sfScriptText(SCRIPTFUNC_PARAMS) { text = thread->_strings->getString(stringId); - if (_vm->getGameType() == GType_ITE) - width = _vm->_font->getStringWidth(kMediumFont, text, 0, kFontOutline); - else - width = _vm->_font->getStringWidth(kIHNMMainFont, text, 0, kFontOutline); + width = _vm->_font->getStringWidth(kKnownFontScript, text, 0, kFontOutline); rect.top = point.y - 6; rect.setHeight(12); rect.left = point.x - width / 2; -- cgit v1.2.3