diff options
Diffstat (limited to 'src/ft.h')
-rw-r--r-- | src/ft.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 |