Skip to content

Commit

Permalink
WAGE: Fixed font mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 7, 2016
1 parent 46076a0 commit f258448
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions engines/wage/entities.cpp
Expand Up @@ -164,16 +164,33 @@ const char *fontNames[] = {

"San Francisco",
"Toronto",
NULL,
"Cairo",
"Los Angeles", // 12

NULL, NULL, NULL, NULL, NULL, NULL, NULL, // not in Inside Macintosh
"Zapf Dingbats",
"Bookman",
"Helvetica Narrow",
"Palatino",
NULL,
"Zapf Chancery",
NULL,

"Times", // 20
"Helvetica",
"Courier",
"Symbol",
"Taliesin" // mobile?
"Taliesin", // mobile?
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, // 30
NULL,
NULL,
"Avant Garde",
"New Century Schoolbook"
};

const char *Scene::getFontName() {
Expand Down
2 changes: 1 addition & 1 deletion engines/wage/world.cpp
Expand Up @@ -182,7 +182,7 @@ bool World::loadWorld(Common::MacResManager *resMan) {
scene->_fontSize = res->readUint16BE();

if (scene->_fontType != 3 || scene->_fontSize != 9)
warning("scene: %s font: %s size: %d", scene->_name.c_str(), scene->getFontName(), scene->_fontSize);
warning("scene: %s font: '%s' (%d) size: %d", scene->_name.c_str(), scene->getFontName(), scene->_fontType, scene->_fontSize);

String text;
while (res->pos() < res->size()) {
Expand Down

0 comments on commit f258448

Please sign in to comment.