Good morning, Herb!<div><br></div><div>Here is a very short file which illustrates the problem:</div><div><br></div><div>%%% Start of test file</div><div><div>\def\testfonti{STKaiti}% a `large' font; 32493 characters</div>
<div>\def\testfontii{Kaiti SC Bold}% a `small' font; 8535 characters</div><div>\font\1 = "\testfonti" at 10pt</div><div>\font\2 = "\testfontii" at 10pt</div><div><br></div><div>This is a test. One: {\1 仁} % Line A (calls large Chinese font)</div>
<div><br></div><div>This is a test. Two: % {\2 仁} % Line B (calls small Chinese font)</div><div><br></div><div>\bye</div><div>%%% End of test file</div><div><br></div><div>Here's what happens. Comment out the call to the large Chinese font in Line A, and the file compiles/displays properly. Uncomment Line A, and the perplexing error messages appear. Here is a copy of TeXShop's console display:</div>
<div><br></div><div>
<p class="p1">This is XeTeXk, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7)</p>
<p class="p1"> %&-line parsing enabled.</p>
<p class="p1">entering extended mode</p>
<p class="p1">(./chitest.tex [1]</p>
<p class="p1">** WARNING ** Unable to read OpenType/TrueType Unicode cmap table.</p>
<p class="p1">** WARNING ** Failed to load ToUnicode CMap for font "STKaiti"</p>
<p class="p1">** ERROR ** Invalid glyph index (gid 13384)</p>
<p class="p2"><br></p>
<p class="p1">Output file removed.</p>
<p class="p1"> )</p>
<p class="p1">Error 256 (driver return code) generating output;</p>
<p class="p1">file chitest.pdf may not be valid.</p>
<p class="p1">Transcript written on chitest.log.</p></div><div><br></div><div>I'm running Mountain Lion (OSX 10.8) on my Mac Mini, using TeXShop 3.11 which calls XeTeX Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7). A font called `STKaiti' was present on OSX10.7; I don't know if it is the same as the one currently part of 10.8. I think 'Kaiti SC Bold' is a Chinese font new to 10.8.</div>
<div><br></div><div>Any insight you can provide will put me in your debt FOREVER! Thanks...</div><div><br></div><div>---Alan</div>
<br><div class="gmail_quote">On Sat, Jul 28, 2012 at 5:16 PM, Herbert Schulz <span dir="ltr"><<a href="mailto:herbs@wideopenwest.com" target="_blank">herbs@wideopenwest.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Jul 28, 2012, at 10:16 AM, Alan Hoenig <<a href="mailto:ezchinesey@gmail.com">ezchinesey@gmail.com</a>> wrote:<br>
<br>
> I use TeXShop (v3.11) to run XeTeX on a Mac Mini. A large book project<br>
> containing Chinese suddenly failed to compile with the message<br>
><br>
> ** WARNING ** Unable to read OpenType/TrueType Unicode cmap table.<br>
><br>
> ** WARNING ** Failed to load ToUnicode CMap for font "STKaiti"<br>
><br>
> ** ERROR ** Invalid glyph index (gid 13383)<br>
><br>
> Output file removed.<br>
><br>
> Error 256 (driver return code) generating output;<br>
><br>
> file chitest.pdf may not be valid.<br>
><br>
><br>
> Just before this problem appeared, I upgraded the OS to Mac OSX 10.8,<br>
> Mountain Lion. (The upgrade includes several new Chinese fonts, which is<br>
> why I was anxious for the upgrade.)<br>
><br>
> I used a test file to reproduce the error, which doesn't seem to occur if<br>
> the font contains a modest number of glyphs, say a few thousand or less.<br>
> It is a problem for large fonts (like STKaiti) with more than 32k<br>
> characters.<br>
><br>
> Can anyone shed light on this situation, and what to do to about it? Many<br>
> thanks...<br>
><br>
> ---Alan Hoenig<br>
<br>
<br>
</div></div>Howdy,<br>
<br>
Could you supply a sample file that shows the problem so we can try it on our systems.<br>
<br>
Good Luck,<br>
<br>
Herb Schulz<br>
(herbs at wideopenwest dot com)<br>
<br>
<br>
<br>
<br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</blockquote></div><br></div>