aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-28 18:37:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-28 18:37:59 +0000
commit9e57ba21086abb15772ae7efda06e584d618cd19 (patch)
treead70dd421994e93e669d2fc1f723046e5b37b0ec /terminal.h
parentcairo-ft: remove all usages of cairo-ft (diff)
font: add font_glyph_for_utf8()
This function fills in a struct glyph with glyph bitmap data for the provided utf-8 character (essentially a FT_Bitmap wrapped in a cairo surface).
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index b5fea057..83efe69a 100644
--- a/terminal.h
+++ b/terminal.h
@@ -206,9 +206,11 @@ struct primary {
uint32_t serial;
};
-struct glyph_cache {
- cairo_glyph_t *glyphs;
- int count;
+struct glyph {
+ void *data;
+ cairo_surface_t *surf;
+ int left;
+ int top;
};
struct font {