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). --- font.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'font.h') diff --git a/font.h b/font.h index 90a1b6a7..d8efd509 100644 --- a/font.h +++ b/font.h @@ -4,3 +4,5 @@ #include "terminal.h" bool font_from_name(const char *name, struct font *result); +bool font_glyph_for_utf8( + const struct font *font, const char *utf8, struct glyph *glyph); -- cgit v1.3