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. -- Ulrike Fischer -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex