[gs-commits] ghostpdl branch, master, updated. ghostpdl-9.02-678-gb5fa52b
Ken Sharp
ken at ghostscript.com
Mon Oct 24 15:49:07 UTC 2011
The ghostpdl branch, master has been updated
via b5fa52b7e60a7eb23b77c4fd117ed37eb04263b5 (commit)
from 33e827eb32d282a550e2f7a9fdb786dd777b0903 (commit)
----------------------------------------------------------------------
commit b5fa52b7e60a7eb23b77c4fd117ed37eb04263b5
Author: Ken Sharp <ken.sharp at artifex.com>
Date: Mon Oct 24 16:48:44 2011 +0100
Bug #692621 Ensure that when copying width information, we create an array as large as the new MaxCID value
Commit 312255297353a9f62b5090e9137586a8ecfc8601 create the new MaxCID entry
for CIDFont type 0 fonts which use a GlyphDirectory. We must use the same
value when creating the arrays to store the widths of the glyphs, or we will
no have a large enough array, leading to soem glyphs getting the Default Width.
No differences expected
diff --git a/gs/base/gdevpdtt.c b/gs/base/gdevpdtt.c
index 104e925..07f6936 100644
--- a/gs/base/gdevpdtt.c
+++ b/gs/base/gdevpdtt.c
@@ -740,7 +740,7 @@ font_cache_elem_array_sizes(gx_device_pdf *pdev, gs_font *font,
*num_widths = *num_chars = 256; /* Assuming access to glyph_usage by character codes */
break;
case ft_CID_encrypted:
- *num_widths = *num_chars = ((gs_font_cid0 *)font)->cidata.common.CIDCount;
+ *num_widths = *num_chars = ((gs_font_cid0 *)font)->cidata.common.MaxCID + 1;
break;
case ft_CID_TrueType:
*num_widths = *num_chars = ((gs_font_cid2 *)font)->cidata.common.CIDCount;
Summary of changes:
gs/base/gdevpdtt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
More information about the gs-commits
mailing list