[XeTeX] \font syntax

Hans Hagen pragma at wxs.nl
Tue Jul 31 14:51:50 CEST 2007


Bruno Voisin wrote:
> Le 31 juil. 07 à 13:27, Jonathan Kew a écrit :
> 
>> But I'm
>> interested to hear what people think.... anyone else with opinions on
>> this?
> 
> The syntax "..." for a font name is slightly confusing, given double  
> quotes have for some time been used in TeX (at least on the Mac) to  
> delimit a file name, for example in a \special or \includegraphics  
> command, allowing the file name to include spaces.

even more confusing is ...

% \font\myfont =  msam7         % ok
% \font\myfont = "msam7"        % also ok
% \font\myfont = "msam7" at 8pt % error

as taco found out, this is a side effect of xetex being tolerant when 
fonts are already loaded; so, if one wants to test if a font is present 
(batchmode trickery) then one needs to make sure to pass the intended 
scale as well (new instance)

btw, did any of you run into

(CID:/opt/tex/texmf/fonts/type1/public/lm/lmex10.pfb[PBEIFR+LMMathExtension10-Regular][CIDFontType0]
** WARNING ** Invalid CMap
** ERROR ** pdf_ref_obj(): passed invalid object.

Output file removed.

is that a bug or a configuration error?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the XeTeX mailing list