aboutsummaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-26 17:54:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-26 18:02:35 +0000
commitbc86cd61c75f984633eb226692a30832c58efb17 (patch)
tree7acacdfbf567e52d5331bf7710557195d6800980 /font.h
parentfont: cleanup and return error when failing to load font file (diff)
font: move metrics from terminal struct to font struct
Diffstat (limited to 'font.h')
-rw-r--r--font.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/font.h b/font.h
index 9eebd0a9..a01416dc 100644
--- a/font.h
+++ b/font.h
@@ -46,6 +46,12 @@ struct font {
double pixel_size_fixup; /* Scale factor - should only be used with ARGB32 glyphs */
bool bgr; /* True for FC_RGBA_BGR and FC_RGBA_VBGR */
+ /* font extents */
+ int height;
+ int descent;
+ int ascent;
+ int max_x_advance;
+
struct {
int position;
int thickness;