summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 8d66ed366..1f5e56d92 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -65,6 +65,12 @@ public:
inline int GetUnitsPerEM() const { return this->units_per_em; }
/**
+ * Get the nominal font size of the font.
+ * @return The nominal font size.
+ */
+ virtual int GetFontSize() const { return this->height; }
+
+ /**
* Get the SpriteID mapped to the given key
* @param key The key to get the sprite for.
* @return The sprite.