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/cli.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cli.c') diff --git a/src/cli.c b/src/cli.c index 128b93c..d1b167f 100644 --- a/src/cli.c +++ b/src/cli.c @@ -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); -- cgit v1.2.3