aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/text.cpp
diff options
context:
space:
mode:
authorMarisa-Chan2014-03-09 23:18:05 +0700
committerMarisa-Chan2014-03-09 23:18:05 +0700
commitea6e151047641563f588b6578aea80141f51bbd0 (patch)
treec75597cdf203c76b7c052739b555f05c9ce0fcb1 /engines/zvision/text.cpp
parent74fe47748e11cc58aee46e986d6670636c027e32 (diff)
downloadscummvm-rg350-ea6e151047641563f588b6578aea80141f51bbd0.tar.gz
scummvm-rg350-ea6e151047641563f588b6578aea80141f51bbd0.tar.bz2
scummvm-rg350-ea6e151047641563f588b6578aea80141f51bbd0.zip
ZVISION: Add support for sharp(monochrome) font loading
Diffstat (limited to 'engines/zvision/text.cpp')
-rw-r--r--engines/zvision/text.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/zvision/text.cpp b/engines/zvision/text.cpp
index 575ca03d10..e96bf4b32c 100644
--- a/engines/zvision/text.cpp
+++ b/engines/zvision/text.cpp
@@ -58,6 +58,7 @@ cTxtStyle::cTxtStyle() {
strikeout = false;
underline = false;
statebox = 0;
+ sharp = false;
}
txtReturn cTxtStyle::parseStyle(const Common::String &strin, int16 ln) {
@@ -263,6 +264,9 @@ void cTxtStyle::setFontStyle(sTTFont &font) {
if (strikeout)
temp_stl |= sTTFont::STTF_STRIKEOUT;
+ if (sharp)
+ temp_stl |= sTTFont::STTF_SHARP;
+
font.setStyle(temp_stl);
}
@@ -281,6 +285,9 @@ void cTxtStyle::setFont(sTTFont &font) {
if (strikeout)
temp_stl |= sTTFont::STTF_STRIKEOUT;
+ if (sharp)
+ temp_stl |= sTTFont::STTF_SHARP;
+
font.loadFont(fontname, size, temp_stl);
}