main: calculate *all* font metrics from the FreeType face

This commit is contained in:
Daniel Eklöf 2019-07-28 12:39:56 +02:00
parent 27dca15caf
commit c399c329b6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 25 additions and 10 deletions

View file

@ -325,7 +325,13 @@ struct terminal {
struct grid *grid;
struct font fonts[4];
cairo_font_extents_t fextents;
//cairo_font_extents_t fextents;
struct {
int height;
int descent;
int ascent;
int max_x_advance;
} fextents;
struct wayland wl;
struct {