diff options
author | Marisa-Chan | 2014-03-09 23:18:05 +0700 |
---|---|---|
committer | Marisa-Chan | 2014-03-09 23:18:05 +0700 |
commit | ea6e151047641563f588b6578aea80141f51bbd0 (patch) | |
tree | c75597cdf203c76b7c052739b555f05c9ce0fcb1 /engines/zvision/text.cpp | |
parent | 74fe47748e11cc58aee46e986d6670636c027e32 (diff) | |
download | scummvm-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.cpp | 7 |
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); } |