From 019a51944696e5619ac6c635e1ce1d8af0981788 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 1 Aug 2008 09:34:34 +0000 Subject: (svn r13910) -Document: string drawing related functions and types (Alberth) --- src/gfx_func.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gfx_func.h') 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) { -- cgit v1.2.3-54-g00ecf