summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-11-29 13:47:38 +0000
committerRobin Watts <robin.watts@artifex.com>2012-11-29 14:41:33 +0000
commit82b666579e02a4d35b3087b79353373c355d107f (patch)
tree8a9a6b93ecbe16a663a015f233e824017e02ad50 /apps
parentc3fa0d45ff96eefe6effaeffc45516c6f85587bd (diff)
downloadmupdf-82b666579e02a4d35b3087b79353373c355d107f.tar.xz
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.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfextract.c2
1 files changed, 2 insertions, 0 deletions
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);
}