summaryrefslogtreecommitdiff
path: root/src/ft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft.h')
-rw-r--r--src/ft.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/ft.h b/src/ft.h
index db3db19..fc60c91 100644
--- a/src/ft.h
+++ b/src/ft.h
@@ -1,6 +1,8 @@
#ifndef _TTF2F_FT_H_
#define _TTF2F_FT_H_
+#include "context.h"
+
struct font_metrics;
struct glyph;
@@ -8,14 +10,13 @@ void ft_init(void);
void ft_fini(void);
void *open_font(char *fname);
void close_font(void *face);
-size_t count_glyphs(void *face);
-int glnames(void *face, struct glyph *glyph_list);
-void glmetrics(void *face, struct glyph *glyph_list,
- void (*callback)(int progress));
-int glenc(void *face, struct glyph *glyph_list);
-int fnmetrics(void *face, struct font_metrics *fm);
-void glpath(void *face, int glyphno, struct glyph *glyph_list);
-void kerning(void *face, struct glyph *glyph_list);
+size_t count_glyphs(ttf2f_ctx *ctx);
+int glnames(ttf2f_ctx *ctx);
+void glmetrics(ttf2f_ctx *ctx, void (*callback)(int progress));
+int glenc(ttf2f_ctx *ctx);
+int fnmetrics(ttf2f_ctx *ctx);
+void glpath(ttf2f_ctx *ctx, int glyphno);
+void kerning(ttf2f_ctx *ctx);
#endif