summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-20 12:01:42 +0000
committerrubidium <rubidium@openttd.org>2011-11-20 12:01:42 +0000
commit462b875b4a5478aa90af26188eb6cd4a43f6c698 (patch)
tree588fbec6592229fd231ea7cfdbe891d1b031707a /src/strings.cpp
parent9512838a5e9a4ad6f008bd0423e1056eb15cb242 (diff)
downloadopenttd-462b875b4a5478aa90af26188eb6cd4a43f6c698.tar.xz
(svn r23276) -Codechange: add the answer for the question whether we're looking for monospace fonts in the searcher
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index eadde4edc..c44e2f912 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1750,7 +1750,7 @@ const char *GetCurrentLanguageIsoCode()
*/
bool MissingGlyphSearcher::FindMissingGlyphs(const char **str)
{
- InitFreeType(false);
+ InitFreeType(this->Monospace());
const Sprite *question_mark[FS_END];
for (FontSize size = FS_BEGIN; size < FS_END; size++) {
@@ -1813,6 +1813,11 @@ class LanguagePackGlyphSearcher : public MissingGlyphSearcher {
return ret;
}
+ /* virtual */ bool Monospace()
+ {
+ return false;
+ }
+
/* virtual */ void SetFontNames(FreeTypeSettings *settings, const char *font_name)
{
#ifdef WITH_FREETYPE
@@ -1856,7 +1861,7 @@ void CheckForMissingGlyphs(bool base_font, MissingGlyphSearcher *searcher)
/* Our fallback font does miss characters too, so keep the
* user chosen font as that is more likely to be any good than
* the wild guess we made */
- InitFreeType(false);
+ InitFreeType(searcher->Monospace());
}
}
#endif