Codechange: Replace magic numbers by constants.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user