2011/8/30 Ulrike Fischer <news3 at nililand.de>:
> Am Tue, 30 Aug 2011 14:35:24 +0200 schrieb Zdenek Wagner:
>>> Hello,
>> I have problems with Nafees fonts in xelatex. The same problem occurs
>> in two Linux distros (CentOS 4 and CentOS 5) with TL 2010 as well as
>> TL 2011. I am not sure whether it is a TL specific or OS specific
>> problem (or my fault). I did the following:
>>>> 1. unpacked the Nafees fonts to /usr/share/fonts/Nafees, ran fc-cache
>> as root, verified that the fonts work in gedit, OpenOffice.org and
>> <oXygen/>
>>>> 2. used in xelatex, the error message is:
>> ** ERROR ** Cannot proceed without the "native" font: NafeesNastaleeq
>> (Nafees Regular)...
>>>> 3. copied the font to the working directory, renamed to urdu.ttf and
>> changed the font loading command to use urdu.ttf, now it works and the
>> PDF is correct
>>>> 4. I thouhgt it may be a problem of a space in the font name, thus I
>> have renamed the font, reran fc-cache, validated that it still works
>> in gedit, but xelatex reports the same error
>>>> 5. renamed urdu.ttf to "font urdu.ttf" (space in the file name),
>> modified the font loading command to use this file and it works fine
>>>> Am I doing something wrong or is it a bug?
>> Well without a link to the font it is difficult to make tests. But
> if you can load the font if you use the file name but get problems
> if you use the font name I would at first check if there is a second
> font around with the same font name.
>The font can be found here:
http://www.crulp.org/software/localization/Fonts/nafeesNastaleeq.html
> Put \XeTeXtracingfonts= 1 in your document and compile with
>> xelatex --no-pdf file
>> this will give you some informations in the log about the used
> fonts.
>> Then convert the xdv with
>> xdvipdfmx -vv file
>> to see which fonts xdvipdfmx is using.
>from the XeLaTeX's log:
Requested font "Nafees Nastaleeq/ICU" at 10.0pt
-> /usr/share/fonts/Nafees/Nafees Nastaleeq v1.02.ttf
\g_fontspec_family_Nafees Nastaleeq_int=\count176
.................................................
. fontspec info: "defining-font"
.
. Defining font family 'NafeesNastaleeq(0)' for font 'Nafees Nastaleeq' with
. options [Script=Arabic].
.................................................
.................................................
. fontspec info: "defining-raw"
.
. Defining shape 'normal' with NFSS spec.:
. <->"Nafees Nastaleeq/ICU:script=arab;language=DFLT;"
.................................................
Requested font "Nafees Nastaleeq/B/ICU" at 10.0pt
->
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Nafees Nastaleeq/B (it probably doesn't exist).
.................................................
Requested font "Nafees Nastaleeq/I/ICU" at 10.0pt
-> /usr/share/fonts/Nafees/Nafees Nastaleeq v1.02.ttf
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Nafees Nastaleeq/I (it probably doesn't exist).
.................................................
Requested font "Nafees Nastaleeq/BI/ICU" at 10.0pt
-> /usr/share/fonts/Nafees/Nafees Nastaleeq v1.02.ttf
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Nafees Nastaleeq/BI (it probably doesn't exist).
.................................................
Requested font "Nafees Nastaleeq/ICU:script=arab;language=DFLT;" at 10.0pt
-> /usr/share/fonts/Nafees/Nafees Nastaleeq v1.02.ttf
from xdvipdfmx's output:
<FONTMAP:pdftex.map><FONTMAP:cid-x.map>DVI Comment: XeTeX output
2011.08.30:1558
xxx.xdv -> xxx.pdf
<AGL:texglyphlist.txt>[1<NafeesNastaleeq(Nafees:Regular)@20.66pt
** ERROR ** Cannot proceed without the "native" font: NafeesNastaleeq
(Nafees Regular)...
Output file removed.
>>> --
> Ulrike Fischer
>>
--
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/http://icebearsoft.euweb.cz