[tex-live] Problems with Nafees fonts

Zdenek Wagner zdenek.wagner at gmail.com
Mon Sep 5 15:30:51 CEST 2011


2011/9/5 Khaled Hosny <khaledhosny at eglug.org>:
> On Mon, Sep 05, 2011 at 02:18:02PM +0200, Zdenek Wagner wrote:
>> 2011/8/31 Jonathan Kew <jfkthame at googlemail.com>:
>> > On 31 Aug 2011, at 12:51, Zdenek Wagner wrote:
>> >
>> >> 2011/8/31 Akira Kakuto <kakuto at fuk.kindai.ac.jp>:
>> >>>> Well obviously xdvipdfmx can't find the font. I get the same error
>> >>>> message if I first generate the xdv, then remove the font, and then
>> >>>> call xdvipdfmx.
>> >>>
>> >>> Here (windows) xdvipdfmx can find the font by
>> >>> \setmainfont[Script=Arabic]{Nafees Nastaleeq}:
>> >>>
>> >> Thank you for the test, I removed bidi but I still get the same error.
>> >> Thus is seems to be an OS specific problem, maybe in XeTeX, maybe in
>> >> fontspec, maybe in xdvipdfmx (I cannot find a contact to an author of
>> >> xdvipdfmx). I have placed all relevant mails, the source file and the
>> >> log file at
>> >> http://hroch486.icpf.cas.cz/NafeesBug/
>> >>
>> >> I can try it on i386 in Fedora 13 and if needed, I can build TL
>> >> binaries from svn repository, if you modify the sources and if it
>> >> helps testing.
>> >
>> > My guess is that this is related to fontconfig behavior, and some kind of oddity or mismatch in the font's name table.
>> >
>> > What version of fontconfig is present on your machine? If it's not fairly up-to-date, it might be worth trying a more recent one.
>> >
>> Finally I tried on Fedora 13 with newer fontconfig and it works.
>> Unfortunatelly, I cannot afford to upgrade Linux on other computers
>> and compilation fo the latest fontconfig from the git sources may be
>> difficult or even impossible with libraries from RPM's, so it seems I
>> will have to live without the Nafees fonts :-(
>> SIL Scheherazade is a beautiful font containing Urdu characters but I
>> need Nastaleeq style...
>
> Almost all Nafees fonts have buggy font names, e.g. many of them have
> the "preferred family" set to "Nafees" and this confuses fontconfig. So
> if you are installed other Nafees fonts, try removing them or fix the
> name using FontForge or a similar tool.
>
Could you, please, explain more explicitely what I should do? I have
FontForge installed but my knowledge of OpenType is low. If I have
detailed instructions, I can certainly do it. What confuses me is that
the fonts work fine in gedit, in OpenOffice and in Firefox.

Now I see a potential problem. If I open the font in FontForge and
select Element/Font info, the dialog contains:

Base filename: same as fontname

However, the filename differs from the fontname. Could it be the
reason why the font is not found? Can firefox, gedit and OpenOffice
ignore this setting and use other logic to find the file?

> Regards,
>  Khaled
>
> --
>  Khaled Hosny
>  Egyptian
>  Arab
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



More information about the tex-live mailing list