@@ -10,3 +10,6 @@
path = libffi
url = https://git.kmx.io/c3-lang/libffi.git
branch = master
+[submodule "fonts"]
+ path = fonts
+ url = git@git.kmx.io:c3-lang/fonts.git
new file mode 160000
@@ -0,0 +1 @@
+Subproject commit 7056e50f1a1ddc85afe465caa55ae4bd415f16ff
@@ -60,3 +60,8 @@ s_cairo_font * cairo_font_init (s_cairo_font *font, s_str *path)
(font->ft_face, 0);
return font;
}
+
+void cairo_font_set (const s_cairo_font *font, cairo_t *cr)
+{
+ cairo_set_font_face(cr, font->cairo_font_face);
+}
@@ -20,6 +20,9 @@
/* Stack-allocation compatible functions, call cairo_font_clean after
use. */
void cairo_font_clean (s_cairo_font *font);
-s_cairo_font * cairo_font_init (s_cairo_font *font, s_str *path);
+s_cairo_font * cairo_font_init (s_cairo_font *font, const s_str *path);
+
+/* Observers */
+void cairo_font_set (const s_cairo_font *font, cairo_t *cr);
#endif /* LIBC3_WINDOW_CAIRO_CAIRO_FONT_H */