neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit 5e4aa913cc1be3f9d38ce760532e9dfb32aea93c
parent 7c6ea3372de5b708ca467873af9d0a5b6ff84454
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 13 Jul 2013 02:34:00 -0700

Add wld_font_destroy_context

Diffstat:
Mfont.c | 6++++++
Mwld.h | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/font.c b/font.c @@ -49,6 +49,12 @@ struct wld_font_context * wld_font_create_context() return NULL; } +void wld_font_destroy_context(struct wld_font_context * context) +{ + FT_Done_FreeType(context->library); + free(context); +} + struct wld_font * wld_font_open_name(struct wld_font_context * context, const char * name) { diff --git a/wld.h b/wld.h @@ -68,6 +68,11 @@ struct wld_font struct wld_font_context * wld_font_create_context(); /** + * Destroy a font context. + */ +void wld_font_destroy_context(struct wld_font_context * context); + +/** * Open a new font from the given fontconfig match. */ struct wld_font * wld_font_open_pattern(struct wld_font_context * context,