diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2009-01-19 18:04:56 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2009-01-19 18:04:56 +0000 |
commit | a266587cee89256d338fbbdb00a93c19753ab8e5 (patch) | |
tree | 687293b41c73f4bbd8b400c7b82885041f402842 /xps/xpsglyphs.c | |
parent | f2acb72fd494db1bc04f057847b4827d96cce2c1 (diff) | |
download | ghostpdl-a266587cee89256d338fbbdb00a93c19753ab8e5.tar.gz |
Make the content type maps a compile time option (they're not necessary, and take a lot of processing time to maintain). Fix some bugs in the handling of the part hash table.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9377 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsglyphs.c')
-rw-r--r-- | xps/xpsglyphs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c index 31c91e763..25ba17d6c 100644 --- a/xps/xpsglyphs.c +++ b/xps/xpsglyphs.c @@ -575,12 +575,14 @@ xps_parse_glyphs(xps_context_t *ctx, xps_resource_t *dict, xps_item_t *root) if (!part) return gs_throw1(-1, "cannot find font resource part '%s'", partname); + /* deobfuscate if necessary */ if (!part->deobfuscated) { - /* deobfuscate if necessary */ +#ifdef XPS_LOAD_TYPE_MAPS parttype = xps_get_content_type(ctx, part->name); if (parttype && !strcmp(parttype, "application/vnd.ms-package.obfuscated-opentype")) xps_deobfuscate_font_resource(ctx, part); +#endif /* stupid XPS files with content-types after the parts */ if (!parttype && strstr(part->name, ".odttf")) |