aboutsummaryrefslogtreecommitdiff
path: root/drw.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-17 22:39:30 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-17 22:39:30 +0200
commitbcde9052c250bb8a684516930069379f1c1349ce (patch)
tree3ffb095d22d4108e2b6cc14cf52ef507f9bc7b3b /drw.h
parent7659dfc2894518f124557ba1f2ae493c6c041782 (diff)
fix memory leak of draw_char
Diffstat (limited to 'drw.h')
-rw-r--r--drw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drw.h b/drw.h
index af07d50..8417e15 100644
--- a/drw.h
+++ b/drw.h
@@ -24,6 +24,7 @@ typedef struct {
int loaded;
FT_Library library;
FT_Face face;
+ FT_Stroker stroke;
} Font;
enum FontType {
@@ -72,6 +73,5 @@ FontCache *create_font_cache(FontPath *fontpath, int size, unsigned fontsize);
void font_cache_generate_box(FontCache *fontcache);
void free_font_cache(FontCache *fontcache);
unsigned draw_char(Canvas *canvas, FontCache *fontcache, uint_least32_t charcode, unsigned x, unsigned y, uint32_t color);
-unsigned font_width(FontCache *fontcache, const char *text);
#endif