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

Jonathan Kew jonathan_kew at sil.org
Thu Feb 21 11:54:29 CET 2008


On 21 Feb 2008, at 10:35 am, Peter Dyballa wrote:

>
> Am 21.02.2008 um 10:59 schrieb Ulrike Fischer:
>
>> \setmainfont{LMRoman10-Regular} ?
>>
>> A small test didn't seem to have the desired effect: xdvipdfmx didn't
>> use LMRoman5-Regular for tiny text.
>
>
> Without an FD file neither XeTeX nor xdvipdfmx can guess that at
> small text sizes a different font is the proper choice.


Yes it can -- this is exactly what XeTeX does with OpenType families  
that have optical sizing information.

   \font\x = "Garamond Premier Pro" at 7pt
     % uses Garamond Premier Pro Caption

   \font\y = "Garamond Premier Pro" at 12pt
     % uses Garamond Premier Pro

   \font\z = "Garamond Premier Pro" at 18pt
     % uses Garamond Premier Pro Subhead

This happens automatically for installed font families that have the  
OpenType optical size feature. It can of course be overridden (with  
the /S=.... modifier on the font name).

It does not happen for fonts accessed directly by filename (or  
"external location") rather than real font name; if you ask for a  
specific file, you get that file.

JK



More information about the XeTeX mailing list