summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-28 17:10:15 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit77330d09fd8307261e94fe0eb0260f5ca5cc3898 (patch)
tree0a2d3efe86b4f0047b558bb668dc9ed17ac63d3f /src/fontcache.h
parent65cbde4b30f8fdf6d4cf1196f6a596a5550c9aee (diff)
downloadopenttd-77330d09fd8307261e94fe0eb0260f5ca5cc3898.tar.xz
Codechange: move font settings to std::string
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index c3b20cb4f..2eb5634cf 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -214,9 +214,9 @@ static inline bool GetDrawGlyphShadow(FontSize size)
/** 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.
+ std::string font; ///< 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.
const void *os_handle = nullptr; ///< Optional native OS font info. Only valid during font search.
};