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/cli.c | |
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/cli.c')
-rw-r--r-- | src/cli.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -48,7 +48,7 @@ int main(int argc, char **argv) return 1; } - ctx.nglyphs = count_glyphs(ctx.face); + ctx.nglyphs = count_glyphs(&ctx); ctx.glyphs = calloc(ctx.nglyphs, sizeof(struct glyph)); if (ctx.glyphs == NULL) { @@ -69,25 +69,25 @@ int main(int argc, char **argv) return 1; } - fail = fnmetrics(ctx.face, ctx.metrics); + fail = fnmetrics(&ctx); if (fail) { fprintf(stderr, "ERROR: failed reading font metrics\n"); return 1; } - fail = glenc(ctx.face, ctx.glyphs); + fail = glenc(&ctx); if (fail) { fprintf(stderr, "ERROR: failed reading glyph encoding\n"); return 1; } - fail = glnames(ctx.face, ctx.glyphs); + fail = glnames(&ctx); if (fail) { fprintf(stderr, "ERROR: failed reading glyph names\n"); return 1; } - glmetrics(ctx.face, ctx.glyphs, progress); + glmetrics(&ctx, progress); mkdir(argv[2], 0755); |