diff options
author | rubidium <rubidium@openttd.org> | 2008-08-01 09:34:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-01 09:34:34 +0000 |
commit | 019a51944696e5619ac6c635e1ce1d8af0981788 (patch) | |
tree | 2ff51cc080d35422ab3d268a167cf4863270082e /src/gfx_func.h | |
parent | 6a401d5dfc04cc5e57dcdb8bcc2192f74e06a220 (diff) | |
download | openttd-019a51944696e5619ac6c635e1ce1d8af0981788.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.h | 5 |
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) { |