diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 15:04:31 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-01 15:04:31 +0100 |
commit | b66dd9317009b665aeaa0ce7ecf097c56af90a04 (patch) | |
tree | 7a3791507ffc1e3868ff518a535a1211433165ea /fb-gui.h | |
parent | b69070ae5ab12189df3130a0ec236ebdcf148551 (diff) | |
download | fbida-b66dd9317009b665aeaa0ce7ecf097c56af90a04.tar.gz |
use cairo for text rendering
Diffstat (limited to 'fb-gui.h')
-rw-r--r-- | fb-gui.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,6 +1,4 @@ -#include <ft2build.h> -#include FT_FREETYPE_H -#include FT_GLYPH_H +#include <cairo.h> extern int visible; @@ -20,9 +18,8 @@ void shadow_merge_rgbdata(int x, int y, int pixels, int weight, unsigned char *rgb); void shadow_darkify(int x1, int x2, int y1,int y2, int percent); -int shadow_draw_string(FT_Face face, int x, int y, wchar_t *str, int align); -void shadow_draw_text_box(FT_Face face, int x, int y, int percent, - wchar_t *lines[], unsigned int count); +int shadow_draw_string(int x, int y, char *str, int align); +void shadow_draw_text_box(int x, int y, int percent, + char *lines[], unsigned int count); -void font_init(void); -FT_Face font_open(char *fcname); +cairo_font_extents_t *shadow_font_init(char *find); |