[XeTeX] Mapping inside font definition
Jonathan Kew
jonathan at jfkew.plus.com
Sat Sep 6 20:18:07 CEST 2008
On 6 Sep 2008, at 6:23 PM, Mehdi Omidali wrote:
> Hi everyone,
> Is it possible to declare a font mapping inside a font definition like
> \newfontinstance\myfont[Script=Arabic,Mapping="U+0030 <> U+06F0"]
> {Scheherazade}
No. Mappings have to be compiled to .tec format (a binary table for
fast lookups), which is done separately using teckit_compile.
>
> If it is not possible, is it possible to define a font mapping file
> and put it
> in the running directory so that fontspec can find it?
Yes, if you have the .tec file in the current directory it should be
found. Alternatively, you can put them somewhere under texmf/fonts/
misc/ in a personal texmf tree.
>
> And as a general comment to the Mapping procedure: it seems that if
> one puts an
> specific font mapping (like Mapping=farsidigits) in a font
> definition and the
> mapping file is not included in the tex distribution, then fontspec
> will not
> complain about that ( such that "undefined farsidigits mapping"). Am
> I right?
fontspec will not complain (it doesn't know), but xetex will give a
warning message in the .log file if it can't find a requested mapping
file.
JK
More information about the XeTeX
mailing list