font: move metrics from terminal struct to font struct

This commit is contained in:
Daniel Eklöf 2019-11-26 18:54:32 +01:00
parent 431800a8a5
commit bc86cd61c7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 35 additions and 34 deletions

6
font.h
View file

@ -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;