[XeTeX] xetex is using an .ttf.ignore-font
Khaled Hosny
khaledhosny at eglug.org
Wed Dec 29 18:50:01 CET 2010
On Wed, Dec 29, 2010 at 02:56:06PM +0100, Ulrike Fischer wrote:
> Am Wed, 29 Dec 2010 21:30:51 +0800 schrieb Vladimir Lomov:
>
> >>>> In my miktex 2.9. I have two version of asana-math:
> >
> >>>> J:/MiKTeX2.9/fonts/truetype/public/asana-math/Asana-Math.ttf.ignore
> >>>> and
> >>>> J:/MiKTeX2.9/fonts/opentype/public/asana-math/Asana-Math.otf
> >
> >>>> Now in the following example xetex uses the .ttf.ignore while
> >>>> xdvipdfmx later uses the .otf which leads to a faulty pdf (a and
> >>>> alpha are replaced by b and beta).
> >
> >>>> Obviously the point of the .ignore is that xetex ignores this font,
> >>>> so I'm wondering why it doesn't work as wanted.
> >
> >>> fontconfig recognizes font files as such based on their content
> >>> (according to whether Freetype can handle them, actually), not
> >>> their filename.
> >
> >> So the naming is actually senseless and it would be better if the
> >> file wheren't installed at all or in a folder which isn't searched
> >> (e.g. fonts/truetype.ignored/...).
>
> > Only if fontconfig doesn't search in that directory.
>
> In miktex fontconfig (which is a miktex specific fontconfig)
> searches fonts/type1, fonts/truetype and fonts/opentype in all
> texmf-trees.
>
> > Though I'm not sure
> > if it searches TL font directories (truetype or opentype) so that
> > xelatex can use ttf and otf fonts distributed with TL.
>
> You could test with \XeTeXtracingfonts=1 with various fonts. The
> log-file should tell you where the xetex of texlive gets the font
> file from.
>
> >> Is the ttf also in texlive in a similar folder or is this is a
> >> miktex specific solution?
>
> > Almost, (TL2010):
> > $TEXLIVE_ROOT/texmf-dist/fonts/{truetype,opentype}/public/Asana-Math/Asana-Math.{ttf,otf}
>
> This means that the .ignore thing is miktex specific (and as I just
> tested: it helps with luatex/mkluatexfontdb). Moving the font to
> fonts/truetype.ignore seems to work for both engines.
You can tell fontconfig to ignore certain font files, but I don't recall
the syntax, sorry.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
More information about the XeTeX
mailing list