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).
This commit is contained in:
Daniel Eklöf 2019-07-28 20:37:59 +02:00
parent 175dc9cf94
commit 9e57ba2108
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 94 additions and 76 deletions

2
font.h
View file

@ -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);