[XeTeX] CID-keyed font support?
Akira Kakuto
kakuto at fuk.kindai.ac.jp
Fri Aug 1 02:20:47 CEST 2014
Hi Khaled, Jiang,
>> I cannot find the location where the crash occurs.
>
> If I remove
> pdf_close_fonts ();
> in pdf_close_document (void) in pdfdoc.c,
> the crash disappears, of course the resulting pdf is bad.
> Thus I believe pdf_close_fonts() in pdffont.c must be
> the reason of the crash on Windows.
I have found the location where the crash occurs:
--- type0.c.orig Mon Jul 28 19:38:13 2014
+++ type0.c Fri Aug 01 09:06:25 2014
@@ -132,7 +132,7 @@
if (font->descriptor)
ERROR("%s: FontDescriptor unexpected for Type0 font.", TYPE0FONT_DEBUG_STR);
if (!(font->flags & FLAG_USED_CHARS_SHARED) && font->used_chars)
- RELEASE(font->used_chars);
+ RELEASE(font->used_chars); /* The crash occurs here */
if (font->used_glyphs)
RELEASE(font->used_glyphs);
if (font->encoding)
In the case of the example on Windows, font->used_chars seems to be
broken, though it is not NULL.
Best,
Akira
More information about the XeTeX
mailing list