aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-font.h
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-font.h')
-rw-r--r--e-util/e-font.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-font.h b/e-util/e-font.h
index 74c91aace5..74ebea2592 100644
--- a/e-util/e-font.h
+++ b/e-util/e-font.h
@@ -39,6 +39,8 @@ void e_font_unref (EFont *font);
gint e_font_ascent (EFont * font);
gint e_font_descent (EFont * font);
+#define e_font_height(f) (e_font_ascent (f) + e_font_descent (f))
+
/*
* NB! UTF-8 text widths are given in chars, not bytes
*/