mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue