aboutsummaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-16 18:40:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-16 18:40:32 +0000
commitbed7b34c2857ebac8028e8b7a00b0bef0d831df0 (patch)
treee55d1a6353fca0436b5a972eae467e8a9af5eca7 /font.h
parentmeson: add pixman dependency (diff)
wip: render background and glyphs using pixman
Diffstat (limited to 'font.h')
-rw-r--r--font.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/font.h b/font.h
index 1450f5f9..d0ebb5bb 100644
--- a/font.h
+++ b/font.h
@@ -7,7 +7,7 @@
#include FT_FREETYPE_H
#include FT_LCD_FILTER_H
#include <fontconfig/fontconfig.h>
-#include <cairo.h>
+#include <pixman.h>
#include "tllist.h"
//#include "terminal.h"
@@ -16,13 +16,14 @@ typedef tll(const char *) font_list_t;
struct glyph {
wchar_t wc;
- int width;
+ int cols;
- cairo_surface_t *surf;
- int left;
- int top;
+ pixman_image_t *pix;
+ int x;
+ int y;
+ int width;
+ int height;
- double pixel_size_fixup;
bool valid;
};