summaryrefslogtreecommitdiff
path: root/psi/zimage.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-03-16 18:27:54 +0000
committerRobin Watts <robin.watts@artifex.com>2017-03-16 18:34:21 +0000
commitc4bff06c6c527af4cdddc2bd4cbd6fef8ffa4e22 (patch)
treed4dc9432eab54ebb26174d4dff6a398abf7aae6f /psi/zimage.c
parent66361d261c6cdcf4d01463ac9d1d769951a32bed (diff)
downloadghostpdl-c4bff06c6c527af4cdddc2bd4cbd6fef8ffa4e22.tar.gz
Set tags correctly for glyphs when sent as masked images.
In gx_image_cached_char we can end up sending the glyph as an imagemask. When we do so, the tag is incorrectly reset to image, rather than text. Here we correct that by adding an 'image_is_text' flag to gs_image_init and gs_image_begin_typed. This can be seen by the fact that: gs -sDEVICE=bitrgbtags -o out.bit -r600 -dMaxBitmap=1000 tests_private/customer_tests/jw202dwo.pcl and gs -sDEVICE=bitrgbtags -o out.bit -r600 -dMaxBitmap=400000000 tests_private/customer_tests/jw202dwo.pcl give different tag values for the text.
Diffstat (limited to 'psi/zimage.c')
-rw-r--r--psi/zimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/zimage.c b/psi/zimage.c
index 1310dcd58..390a07827 100644
--- a/psi/zimage.c
+++ b/psi/zimage.c
@@ -182,7 +182,7 @@ zimage_setup(i_ctx_t *i_ctx_p, const gs_pixel_image_t * pim,
gx_image_enum_common_t *pie;
int code =
gs_image_begin_typed((const gs_image_common_t *)pim, igs,
- uses_color, &pie);
+ uses_color, false, &pie);
if (code < 0)
return code;