summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-01 09:34:34 +0000
committerrubidium <rubidium@openttd.org>2008-08-01 09:34:34 +0000
commitc5a4e90338c4f66dfd75497b5137b4fd0a7da867 (patch)
tree2ff51cc080d35422ab3d268a167cf4863270082e /src/gfx_func.h
parent47592b92883416e782df54604bbe3156e3aa9daf (diff)
downloadopenttd-c5a4e90338c4f66dfd75497b5137b4fd0a7da867.tar.xz
(svn r13910) -Document: string drawing related functions and types (Alberth)
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) {