diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-26 17:54:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-26 18:02:35 +0000 |
| commit | bc86cd61c75f984633eb226692a30832c58efb17 (patch) | |
| tree | 7acacdfbf567e52d5331bf7710557195d6800980 /font.h | |
| parent | font: 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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
