summaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'font.c')
-rw-r--r--font.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/font.c b/font.c
new file mode 100644
index 0000000..c077de2
--- /dev/null
+++ b/font.c
@@ -0,0 +1,12 @@
+#include "font.h"
+#include "TZR.h"
+
+static TZR_Uint ___font_spr = 0;
+
+int font_init(const char *path)
+{
+ ___font_spr = TZR_LoadResourceTyped(TZR_RES_IMAGE, path);
+ if (___font_spr == 0)
+ return 1;
+ return 0;
+}