commit 5e4aa91

Michael Forney  ·  2013-07-13 09:34:00 +0000 UTC
parent 7c6ea33
Add wld_font_destroy_context
2 files changed,  +11, -0
M font.c
M wld.h
M font.c
+6, -0
 1@@ -49,6 +49,12 @@ struct wld_font_context * wld_font_create_context()
 2     return NULL;
 3 }
 4 
 5+void wld_font_destroy_context(struct wld_font_context * context)
 6+{
 7+    FT_Done_FreeType(context->library);
 8+    free(context);
 9+}
10+
11 struct wld_font * wld_font_open_name(struct wld_font_context * context,
12                                      const char * name)
13 {
M wld.h
+5, -0
 1@@ -67,6 +67,11 @@ struct wld_font
 2  */
 3 struct wld_font_context * wld_font_create_context();
 4 
 5+/**
 6+ * Destroy a font context.
 7+ */
 8+void wld_font_destroy_context(struct wld_font_context * context);
 9+
10 /**
11  * Open a new font from the given fontconfig match.
12  */