I use TeXShop (v3.11) to run XeTeX on a Mac Mini.  A large book project containing Chinese suddenly failed to compile with the message<div><br></div><div>







<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 13383)</p>
<p class="p2">Output file removed.</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"><br></p><p class="p1">Just before this problem appeared, I upgraded the OS to Mac OSX 10.8, Mountain Lion.  (The upgrade includes several new Chinese fonts, which is why I was anxious for the upgrade.)  </p>
<p class="p1">I used a test file to reproduce the error, which doesn't seem to occur if the font contains a modest number of glyphs, say a few thousand or less.  It is a problem for large fonts (like STKaiti) with more than 32k characters.</p>
<p class="p1">Can anyone shed light on this situation, and what to do to about it?  Many thanks...</p><p class="p1">---Alan Hoenig</p><p class="p1"><br></p></div>