[XeTeX] fontspec: mapping=tex-text for the lmodern fonts

Will Robertson wspr81 at gmail.com
Fri Feb 15 00:32:46 CET 2008


On 14/02/2008, at 8:40 PM, Ulrike Fischer wrote:

> So what is the best way to add/change font features of the default
> lmodern fonts?

Unfortunately you can't :(
(You'll have to load the fonts explicitly in fontspec if you want more  
features. Luckily the most recent versions play nicely with automatic  
optical sizing..)

fontspec changes the NFSS font encoding to EU1, and the Latin Modern  
fonts are loaded by eu1lmr.fd (etc.). This font loading mechanism is  
completely separate to how the usual \fontspec-type commands work.  
(More due to the history of fontspec than any technical impossibility.)

Now, mapping=tex-text *should* be applied by default, but I left it  
out by mistake in an older version of the "euenc" package. Things get  
more complicated now because the LM fonts have just been updated and  
all of the font filenames changed. So the CTAN version of euenc is for  
the very most recent release of LM, which was only a couple of weeks  
back.

You can update your TeXLive version of euenc from the XeTeX SVN  
repository, however:
   <http://scripts.sil.org/svn-public/xetex/TRUNK/texmf/tex/xelatex/euenc/lm/ 
 >

eu1enc.def hasn't changed, only the LM .fd files above.

Hope this is enough for everyone to puzzle it out :)

Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080215/4addd3b0/attachment.bin 


More information about the XeTeX mailing list