summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Maxwell <damaxwell@alaska.edu>2012-10-07 00:01:53 -0800
committerAdrian Johnson <ajohnson@redneon.com>2012-10-07 19:26:17 +1030
commit0d5f63755e7ceb1bb5678fcf1f4661f3435470fb (patch)
tree48f8db7e744089200f8df835e46abd9e6e0d170e
parent599e78ea2ee146c74fc7ffcee32a055dabbefdda (diff)
downloadcairo-0d5f63755e7ceb1bb5678fcf1f4661f3435470fb.tar.gz
type1-subset: always subset subroutines 0-3 (Flex/hint replacement)
http://lists.cairographics.org/archives/cairo/2012-October/023576.html
-rw-r--r--src/cairo-type1-subset.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index ba0b2292e..56e659a8b 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -1309,6 +1309,12 @@ skip_subrs:
return status;
}
+ /* Always include the first four subroutines in case the Flex/hint mechanism is
+ * being used. */
+ for (j = 0; j < MIN(font->num_subrs, 4); j++) {
+ font->subrs[j].used = TRUE;
+ }
+
closefile_token = find_token (dict_end, font->cleartext_end, "closefile");
if (closefile_token == NULL)
return CAIRO_INT_STATUS_UNSUPPORTED;