From 82b666579e02a4d35b3087b79353373c355d107f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 29 Nov 2012 13:47:38 +0000 Subject: Bug 693463: Various small fixes. Thanks to zeniko for these. Use otf as extension for opentype fonts. fz_clampi should take ints, not floats! Fix typo in prototype. Squash unwanted warning. Remove magic number in favour of #define. Reset generation numbers when renumbering. --- apps/pdfextract.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/pdfextract.c b/apps/pdfextract.c index 7d49f997..f17edff2 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -96,6 +96,8 @@ static void savefont(pdf_obj *dict, int num) ext = "cff"; else if (!strcmp(subtype, "CIDFontType0C")) ext = "cid"; + else if (!strcmp(subtype, "OpenType")) + ext = "otf"; else fz_throw(ctx, "Unhandled font type '%s'", subtype); } -- cgit v1.2.3