dungeon_crawler
diff prototype/drawtext/font.c @ 29:2fc004802739
lalala
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 26 Aug 2012 03:39:32 +0300 |
parents | e122ba214ee1 |
children | 6a471c87f9ca |
line diff
1.1 --- a/prototype/drawtext/font.c Sat Aug 25 20:20:56 2012 +0300 1.2 +++ b/prototype/drawtext/font.c Sun Aug 26 03:39:32 2012 +0300 1.3 @@ -477,6 +477,13 @@ 1.4 dtx_font_sz = sz; 1.5 } 1.6 1.7 +float dtx_line_height(void) 1.8 +{ 1.9 + struct dtx_glyphmap *gmap = dtx_get_font_glyphmap(dtx_font, dtx_font_sz, '\n'); 1.10 + 1.11 + return gmap->line_advance; 1.12 +} 1.13 + 1.14 void dtx_glyph_box(int code, struct dtx_box *box) 1.15 { 1.16 int cidx;