summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-23 15:23:22 +0000
committerrubidium <rubidium@openttd.org>2013-06-23 15:23:22 +0000
commit94a5fe6b927da6e898968d240a3486dbe60d6be8 (patch)
tree2431528829a54d93eceac0f6628fce848e47d5b1 /src/fontcache.h
parent13c450a66bef275a88d687e6f500425b91126f8f (diff)
downloadopenttd-94a5fe6b927da6e898968d240a3486dbe60d6be8.tar.xz
(svn r25437) -Codechange: rework the FreeTypeSettings structure to make it better grouped
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 786edf906..7c1e8a843 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -25,19 +25,19 @@ void InitializeUnicodeGlyphMap();
#ifdef WITH_FREETYPE
+/** Settings for a single freetype font. */
+struct FreeTypeSubSetting {
+ char font[MAX_PATH]; ///< The name of the font, or path to the font.
+ uint size; ///< The (requested) size of the font.
+ bool aa; ///< Whether to do anti aliasing or not.
+};
+
+/** Settings for the freetype fonts. */
struct FreeTypeSettings {
- char small_font[MAX_PATH];
- char medium_font[MAX_PATH];
- char large_font[MAX_PATH];
- char mono_font[MAX_PATH];
- uint small_size;
- uint medium_size;
- uint large_size;
- uint mono_size;
- bool small_aa;
- bool medium_aa;
- bool large_aa;
- bool mono_aa;
+ FreeTypeSubSetting small; ///< The smallest font; mostly used for zoomed out view.
+ FreeTypeSubSetting medium; ///< The normal font size.
+ FreeTypeSubSetting large; ///< The largest font; mostly used for newspapers.
+ FreeTypeSubSetting mono; ///< The mono space font used for license/readme viewers.
};
extern FreeTypeSettings _freetype;