mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
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:
parent
175dc9cf94
commit
9e57ba2108
4 changed files with 94 additions and 76 deletions
2
font.h
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue