<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Oct 17, 2007, at 8:43 AM, Adrian Johnson wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Fred Clare wrote:</DIV> <BLOCKQUOTE type="cite"><DIV>Well, I just tried X11 output and get the same rectangles using the</DIV><DIV>font /Library/Fonts/ArialHB.ttf.  *However* when I try using the Vera</DIV><DIV>.ttf fonts they seem to work fine.  So, I think I have quite a few fonts</DIV><DIV>to work with.  Is there a way to use the fonts distributed with  Ghostscript</DIV><DIV>with freetype?    It would appear that not all .ttf fonts are created</DIV><DIV>equal, since I seem to get the rectangles with several of them.  In</DIV><DIV>particular I downloaded a greek .ttf font that is producing the  rectangles.</DIV><DIV>Or, possibly more likely, I am doing something dumb.</DIV> </BLOCKQUOTE><DIV><BR></DIV><DIV>The rectangles instead of glyphs bug in Preview only occurs with OpenType/CFF fonts. <BR></DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>I am creating a PostScript file and viewing that with Ghostscript which writes to</DIV><DIV>an X11 window so I am not sure that what I am seeing is the known problem</DIV><DIV>with Preview.</DIV><DIV><BR><BLOCKQUOTE type="cite"><DIV>If you are seeing this problem with TrueType fonts it is because the TrueType subsetting has failed and a CFF fallback font has been embedded.</DIV><DIV><BR></DIV><DIV>I previously described how the PDF embedded font typed can be checked here:</DIV><DIV><BR></DIV><DIV><A href="http://lists.cairographics.org/archives/cairo/2007-September/011496.html">http://lists.cairographics.org/archives/cairo/2007-September/011496.html</A></DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>For one of the fonts I am using that produces the rectangles </DIV><DIV>(/Library/Fonts/ArialHB.ttf) in a PDF file, pdffonts produces:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">name                  type      emb sub uni object ID</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">--------------------  --------  --- --- --- ---------</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">SXUHNR+CairoFont-0-0  TrueType  yes yes no       8  0</FONT></DIV><DIV><BR><BLOCKQUOTE type="cite"><DIV><BR></DIV><DIV>There is probably a bug in the TrueType subsetting somewhere as it should not be failing on fonts that FreeType can display. However I am unable to fix this unless I can reproduce the problem on Linux or someone on a Mac can find find out which line in cairo-truetype-subset.c is returning CAIRO_STATUS_UNSUPPORTED.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>I put print statements before all CAIRO_INT_STATUS_UNSUPPORTED returns</DIV><DIV>in cairo-truetype-subset.c and none was ever executed.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Fred</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR></BODY></HTML>