<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 3 Jun 2008, at 10:37 am, L J Davies wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div class="Section1"><p class="MsoNormal">Dear All,<o:p></o:p></p><p class="MsoNormal"><o:p><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">I have a problem with using the Adobe Arabic Regular font with XeTeX or XeLaTeX. I have been able to use fonts such as Arabic Typesetting and Scheherazade without any difficulty. However, when I try to use Adobe Arabic I get separate, oversized, and overlapping characters. I have tried specifying the ligature settings explicitly with the RawFeature setting provided by the fontspec package but to no avail.</span></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">The preamble to my document contains the following: </span></o:p></p><p class="MsoNormal">\usepackage{euler}<o:p></o:p></p><p class="MsoNormal">\usepackage{fontspec}<o:p></o:p></p><p class="MsoNormal">\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}<o:p></o:p></p><p class="MsoNormal">\usepackage{xunicode}<o:p></o:p></p><p class="MsoNormal">\usepackage{xltxtra}<o:p></o:p></p><p class="MsoNormal">\TeXXeTstate=1<o:p></o:p></p><p class="MsoNormal">\newfontfamily\ara[Script=Arabic,Language=Arabic]{Adobe Arabic}<o:p></o:p></p><p class="MsoNormal"><o:p><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">The Arabic text itself is set between the e-TeX \beginR and \endR primitives:</span></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">\beginR{\ara <span style="color:#0070C0">(some Arabic text)</span> }\endR</span></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">I have tried using the font with the above settings, without the language setting, and without both the script and language settings. Where am I going wrong here?</span></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"></p></div></blockquote></div><br><div>I'm familiar with this problem. It occurs because Adobe Arabic is a CFF font but does not use a 1000-unit emsquare to define the glyph outlines, it uses 2048 units. When it is embedded in the PDF, the (correct) /FontMatrix entry gets ignored and the result is that the glyphs are scaled incorrectly.</div><div><br class="webkit-block-placeholder"></div><div>I believe this is really a bug in the PDF viewers involved. It happens with both Apple's PDFkit and Adobe Reader 8. I have reported it to both, but it might help if other people complain as well!</div><div><br class="webkit-block-placeholder"></div><div>Note that if you view the same PDF files with an earlier version of Adobe Reader (e.g., Acrobat Reader 5 or Adobe Reader 7), or with a viewer such as Evince on Linux, the glyphs look fine; these programs interpret the embedded font correctly and respect its /FontMatrix entry.</div><div><br class="webkit-block-placeholder"></div><div>JK</div><div><br class="webkit-block-placeholder"></div></body></html>