Hi Wilfred Thanks: It works and it does not work on several fonts for me. I have been using
otfinfo -a fontname.otf and otfinfo -p fontname.otf to get the font name for setting /fontspec command. Kind Regards, Alan On Fri, Jul 9, 2010 at 1:10 PM, Wilfred van Rooijen <[email protected]>wrote: > Hi, > > The error indicates that the particular font is not found as part of the > system-wide fonts. Then, xelatex tries to generate the font in the > old-fashioned way, and this fails. This means that you are using the wrong > name in the \fontspec command. On Linux, do: > > 1. run "fc-cache -fv" > > This will regenerate the cache of system-wide fonts. You should see your > font directory in the output. If not, that means that the font directory is > skipped. In that case, you need to instruct fc-cache to include your > directory in the font cache. > > 2. run "fc-list" > > This gives a list of all recognized fonts as cached by fc-cache. Note that > the name given in this list is the name you should use in the \fontspec > command. The name in the font cache may be different from the filename of > the corresponding OTF file. > > The OTF fonts have several "identification strings", which may or may not > be the same as the filename. If you really cannot get xelatex to recognize > the font name, you can open the OTF file in fontconfig and look for the > identification strings and try which one is correct to load the font. > > HTH, > Wilfred > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
