summaryrefslogtreecommitdiff
path: root/src/fontcache_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontcache_internal.h')
-rw-r--r--src/fontcache_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fontcache_internal.h b/src/fontcache_internal.h
index 09e676234..2f7454733 100644
--- a/src/fontcache_internal.h
+++ b/src/fontcache_internal.h
@@ -22,6 +22,9 @@ static const byte SHADOW_COLOUR = 2;
/** Font cache for fonts that are based on a TrueType font. */
class TrueTypeFontCache : public FontCache {
protected:
+ static constexpr int MAX_GLYPH_DIM = 256; ///< Maximum glyph dimensions.
+ static constexpr uint MAX_FONT_MIN_REC_SIZE = 20u; ///< Upper limit for the recommended font size in case a font file contains nonsensical values.
+
int req_size; ///< Requested font size.
int used_size; ///< Used font size.