diff src/libmlk-core/core/font.h @ 339:979960e65f76

js: add font bindings While here, correct int to long in font_render.
author David Demelier <markand@malikania.fr>
date Sat, 16 Oct 2021 09:01:20 +0200
parents 8f9937403749
children 19782ea1cf4a
line wrap: on
line diff
--- a/src/libmlk-core/core/font.h	Thu Oct 14 21:21:28 2021 +0200
+++ b/src/libmlk-core/core/font.h	Sat Oct 16 09:01:20 2021 +0200
@@ -24,10 +24,12 @@
 #include "core.h"
 
 struct texture;
+struct vfs_file;
 
 enum font_style {
 	FONT_STYLE_ANTIALIASED,
-	FONT_STYLE_NONE
+	FONT_STYLE_NONE,
+	FONT_STYLE_LAST
 };
 
 struct font {
@@ -44,10 +46,13 @@
 font_openmem(struct font *, const void *, size_t, unsigned int);
 
 int
+font_openvfs(struct font *, struct vfs_file *, unsigned int);
+
+int
 font_ok(const struct font *);
 
 int
-font_render(struct font *, struct texture *, const char *, unsigned int);
+font_render(struct font *, struct texture *, const char *, unsigned long);
 
 unsigned int
 font_height(const struct font *);