summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 51986a71f..12f042c25 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -151,6 +151,11 @@ extern FontSize _cur_fontsize;
byte GetCharacterWidth(FontSize size, uint32 key);
+/**
+ * Get height of a character for a given font size.
+ * @param size Font size to get height of
+ * @return Height of characters in the given font (pixels)
+ */
static inline byte GetCharacterHeight(FontSize size)
{
switch (size) {