[DVIPDFMx] Proposed patch for "SEAC" bug
keiichirou shikano
k16.shikano at gmail.com
Wed Jun 6 17:17:07 KST 2012
I encountered a trouble with Lucida font, using dvipdfmx-20120420 on
Dabien sid, and by some googling I figured out the trouble is the same
issue as this.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639373
There seem to be a bug in getting glyphs using SEAC. Attached is the
proposed patch against dvipdfmx-20110311 source. (I couldn't get cvs
version from behind our company's proxy server.) However, I think the
patch will be helpful for the latest version.
--- cff.c.org 2012-06-06 17:47:18.000000000 +0900
+++ cff.c 2012-06-06 17:47:34.000000000 +0900
@@ -508,7 +508,7 @@
/* I search String INDEX first. */
if (cff && cff->string) {
cff_index *idx = cff->string;
- for (i = 0; i < idx->count; i++) {
+ for (i = 0; i < idx->count - CFF_STDSTR_MAX; i++) {
if (strlen(str) == (idx->offset)[i+1] - (idx->offset)[i] &&
!memcmp(str, (idx->data)+(idx->offset)[i]-1, strlen(str)))
return (i + CFF_STDSTR_MAX);
More information about the dvipdfmx
mailing list