summaryrefslogtreecommitdiff
path: root/framebuffer/fb_font.h
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/fb_font.h')
-rw-r--r--framebuffer/fb_font.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/framebuffer/fb_font.h b/framebuffer/fb_font.h
index 502cf2e83..2e453d465 100644
--- a/framebuffer/fb_font.h
+++ b/framebuffer/fb_font.h
@@ -19,6 +19,20 @@
#ifndef NETSURF_FB_FONT_H
#define NETSURF_FB_FONT_H
+bool fb_font_init(void);
+bool fb_font_finalise(void);
+
+#ifdef FB_USE_FREETYPE
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+
+FT_Face fb_get_face(const struct css_style *style);
+
+#else
+
+#include "utils/utf8.h"
+
struct fb_font_desc {
const char *name;
int width, height;
@@ -34,6 +48,7 @@ extern utf8_convert_ret utf8_to_font_encoding(const struct fb_font_desc* font,
const char *string,
size_t len,
char **result);
+#endif
#endif /* NETSURF_FB_FONT_H */