From bc86cd61c75f984633eb226692a30832c58efb17 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 26 Nov 2019 18:54:32 +0100 Subject: font: move metrics from terminal struct to font struct --- font.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'font.h') 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; -- cgit v1.3