aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/screen.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2018-12-16 12:09:52 +0100
committerPaul Gilbert2018-12-17 21:04:28 -0800
commit77f2330755d3fc82a4e713765eee2b9966f8e22a (patch)
treec2040d37e01cfec2ca598ba24578de883b0eef27 /engines/glk/screen.cpp
parenta163fee23bef7fbb78e4ca018333a44c6869ea76 (diff)
downloadscummvm-rg350-77f2330755d3fc82a4e713765eee2b9966f8e22a.tar.gz
scummvm-rg350-77f2330755d3fc82a4e713765eee2b9966f8e22a.tar.bz2
scummvm-rg350-77f2330755d3fc82a4e713765eee2b9966f8e22a.zip
GLK: FROTZ: Use the Noto runic font for runes
We already bundle other Noto fonts in the font.dat file, so using further Noto fonts makes sense to me. Also, map upper-case letters to lower-case runes since there are versions of Beyond Zork that uses that. (The version I played many years ago did, and it looked very strange. The version I tested with now did not, probably for that very reason. So that part is untested for now.)
Diffstat (limited to 'engines/glk/screen.cpp')
-rw-r--r--engines/glk/screen.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/glk/screen.cpp b/engines/glk/screen.cpp
index 2276998b8f..7b3878298e 100644
--- a/engines/glk/screen.cpp
+++ b/engines/glk/screen.cpp
@@ -116,7 +116,7 @@ bool Screen::loadFonts() {
f.read(buffer, 3);
buffer[3] = '\0';
- if (Common::String(buffer) != "1.0") {
+ if (Common::String(buffer) != "1.1") {
delete archive;
return false;
}
@@ -144,14 +144,17 @@ void Screen::loadFonts(Common::Archive *archive) {
_fonts[5] = loadFont(PROPB, archive, propSize, propAspect, FONTB);
_fonts[6] = loadFont(PROPI, archive, propSize, propAspect, FONTI);
_fonts[7] = loadFont(PROPZ, archive, propSize, propAspect, FONTZ);
+
+ _fonts[8] = loadFont(RUNIC, archive, propSize, propAspect, RUNIC);
}
const Graphics::Font *Screen::loadFont(FACES face, Common::Archive *archive, double size, double aspect, int
style) {
Common::File f;
- const char *const FILENAMES[8] = {
+ const char *const FILENAMES[9] = {
"GoMono-Regular.ttf", "GoMono-Bold.ttf", "GoMono-Italic.ttf", "GoMono-Bold-Italic.ttf",
- "NotoSerif-Regular.ttf", "NotoSerif-Bold.ttf", "NotoSerif-Italic.ttf", "NotoSerif-Bold-Italic.ttf"
+ "NotoSerif-Regular.ttf", "NotoSerif-Bold.ttf", "NotoSerif-Italic.ttf", "NotoSerif-Bold-Italic.ttf",
+ "NotoSansRunic-Regular.ttf"
};
if (!f.open(FILENAMES[face], *archive))