From b98c748a7c71f0a49f41a33411709b7051b9d4e7 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 10 May 2009 22:25:34 +0000 Subject: Pass entire context to freetype binding svn path=/trunk/tools/ttf2f/; revision=7458 --- src/ft.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/ft.h') 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 -- cgit v1.2.3