wip: render background and glyphs using pixman

This commit is contained in:
Daniel Eklöf 2019-08-16 20:40:32 +02:00
parent 9259696b18
commit bed7b34c28
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 134 additions and 78 deletions

13
font.h
View file

@ -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 cols;
pixman_image_t *pix;
int x;
int y;
int width;
int height;
cairo_surface_t *surf;
int left;
int top;
double pixel_size_fixup;
bool valid;
};