summaryrefslogtreecommitdiffhomepage
path: root/src/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types.c b/src/types.c
index c1b3e34..8889f8a 100644
--- a/src/types.c
+++ b/src/types.c
@@ -50,3 +50,13 @@ const struct mrb_data_type NPatchInfo_type = {
"NPatchInfo", mrb_free
};
+const struct mrb_data_type Font_type = {
+ "Font", helper_font_free
+};
+
+void
+helper_font_free(mrb_state* mrb, void*ptr) {
+ Font *font = (Font*)ptr;
+ UnloadFont(*font);
+ mrb_free(mrb, ptr);
+}