diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-10 22:25:34 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-10 22:25:34 +0000 |
commit | b98c748a7c71f0a49f41a33411709b7051b9d4e7 (patch) | |
tree | 9a793bbf31b8b9f5c42de7236ca6b5681c596870 /src/ft.h | |
parent | bf56a5b19e6019b0f0b2bafe5388737da17f5224 (diff) | |
download | ttf2f-b98c748a7c71f0a49f41a33411709b7051b9d4e7.tar.gz ttf2f-b98c748a7c71f0a49f41a33411709b7051b9d4e7.tar.bz2 |
Pass entire context to freetype binding
svn path=/trunk/tools/ttf2f/; revision=7458
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 |