mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
wip: render background and glyphs using pixman
This commit is contained in:
parent
9259696b18
commit
bed7b34c28
5 changed files with 134 additions and 78 deletions
13
font.h
13
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 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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue