From 9e57ba21086abb15772ae7efda06e584d618cd19 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 28 Jul 2019 20:37:59 +0200 Subject: 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). --- terminal.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'terminal.h') 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 { -- cgit v1.3