aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/entities.cpp34
-rw-r--r--engines/wage/entities.h53
2 files changed, 35 insertions, 52 deletions
diff --git a/engines/wage/entities.cpp b/engines/wage/entities.cpp
index 210ca3e1da..a70ac5eee8 100644
--- a/engines/wage/entities.cpp
+++ b/engines/wage/entities.cpp
@@ -99,6 +99,40 @@ void Scene::paint(Graphics::Surface *surface) {
}
}
+// Source: Apple IIGS Technical Note #41, "Font Family Numbers"
+// http://apple2.boldt.ca/?page=til/tn.iigs.041
+const char *fontNames[] = {
+ "Chicago", // system font
+ "Geneva", // application font
+ "New York",
+ "Geneva",
+
+ "Monaco",
+ "Venice",
+ "London",
+ "Athens",
+
+ "San Francisco",
+ "Toronto",
+ "Cairo",
+ "Los Angeles", // 12
+
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, // not in Inside Macintosh
+
+ "Times", // 20
+ "Helvetica",
+ "Courier",
+ "Symbol",
+ "Taliesin" // mobile?
+};
+
+const char *Scene::getFontName() {
+ if (_fontType >= 0 && _fontType < ARRAYSIZE(fontNames) && fontNames[_fontType] != NULL) {
+ return fontNames[_fontType];
+ }
+ return "Unknown";
+}
+
Obj::Obj(String name, Common::SeekableReadStream *data) : _currentOwner(NULL), _currentScene(NULL) {
_name = name;
_classType = OBJ;
diff --git a/engines/wage/entities.h b/engines/wage/entities.h
index 8a8044b56c..29f28d7173 100644
--- a/engines/wage/entities.h
+++ b/engines/wage/entities.h
@@ -403,58 +403,7 @@ public:
void paint(Graphics::Surface *screen);
-#if 0
- String getFontName() {
- String[] fonts = {
- "Chicago", // system font
- "Geneva", // application font
- "New York",
- "Geneva",
-
- "Monaco",
- "Venice",
- "London",
- "Athens",
-
- "San Francisco",
- "Toronto",
- "Cairo",
- "Los Angeles", // 12
-
- null, null, null, null, null, null, null, // not in Inside Macintosh
-
- "Times", // 20
- "Helvetica",
- "Courier",
- "Symbol",
- "Taliesin" // mobile?
- };
- /*
-mappings found on some forums:
-systemFont(0):System(Swiss)
-times(20):Times New Roman(Roman)
-helvetica(21):Arial(Modern)
-courier(22):Courier New(Modern)
-symbol(23):Symbol(Decorative)
-applFont(1):Arial(Swiss)
-newYork(2):Times New Roman(Roman)
-geneva(3):Arial(Swiss)
-monaco(4):Courier New(Modern)
-venice(5):Times New Roman(Roman)
-london(6):Times New Roman(Roman)
-athens(7):Times New Roman(Roman)
-sanFran(8):Times New Roman(Roman)
-toronto(9):Times New Roman(Roman)
-cairo(11):Wingdings(Decorative)
-losAngeles(12):Times New Roman(Roman)
-taliesin(24):Wingdings(Decorative)
- */
- if (fontType >= 0 && fontType < fonts.length && fonts[fontType] != null) {
- return _fonts[fontType];
- }
- return _"Unknown";
- }
-#endif
+ const char *getFontName();
};
class Sound {