[XeTeX] Font Not Loadable Error

Steven Woody narkewoody at gmail.com
Wed Jun 3 13:53:29 CEST 2009


On Wed, Jun 3, 2009 at 10:24 AM, Ulrike Fischer <news3 at nililand.de> wrote:
> Am Tue, 2 Jun 2009 21:22:46 +0200 schrieb Steven Woody:
>
>> Hi,
>>
>> I am using xelatex with texlive 2008 on my windows XP system.  The
>> problem is the \setromainfont and \setsansfont command, for fonts
>> names I speicified for these commands, some can success but some will
>> always failed.  I've checked, any font I specified for these command
>> is valid in widnows's system fonts directory.
>>
>> And, the font name I used was copied from the windows's font viewer
>> (the font face name).
>>
>> Please help me on tracing and resolving this problem. Thanks in advance!
>
> Get from microsoft the font properties extension
> http://www.microsoft.com/typography/truetypeproperty21.mspx
>
> It will add an extended properties dialog to fonts with more
> accurate names of the fonts. In general the "font family name" works
> best, optionally together with the font subfamily name. E.g. for
> latin modern
>
> Latin Modern Roman
> Latin Modern Roman 10 Regular
>

I just tried and still did not success.

Below is a detail output of xelatex:

(e:/opt/texlive/2008/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
kpathsea: Running mktextfm KaiTi_GB2312

kpathsea: Running mktexmf KaiTi_GB2312.mf
name = KaiTi_GB2312, rootname = KaiTi_GB, pointsize = 2312
mktexmf: empty or non-existent rootfile!
Cannot find KaiTi_GB2312.mf.
kpathsea: Appending font creation commands to missfont.log.

! Font \zf at basefont=KaiTi_GB2312 at 10.0pt not loadable: Metric (TFM) file or i
nstalled font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
                                                  \unless \ifzf at icu \zf at set@...
l.14 \setsansfont{KaiTi_GB2312}

? X
No pages of output.
Transcript written on tt.log.


> (It should also be possible to use fc-list to get all the names, but
> I never really found out the correct syntax to use).
>

Those fonts that can not be loaded in xelatex still can not be output
by fc-list.  (PS. fc-list usage is simple, just type it on command
line you will get a long list of fonts information).

-- 
narke


More information about the XeTeX mailing list