diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-28 18:37:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-28 18:37:59 +0000 |
| commit | 9e57ba21086abb15772ae7efda06e584d618cd19 (patch) | |
| tree | ad70dd421994e93e669d2fc1f723046e5b37b0ec /font.h | |
| parent | cairo-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 'font.h')
| -rw-r--r-- | font.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
