Closed Bug 321952 Opened 19 years ago Closed 15 years ago

Cannot render "Nafees Web Naskh" fonts for Urdu

Categories

(Core :: Layout: Text and Fonts, defect)

1.8 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jessbody, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

Firefox does not render the Urdu fonts "Nafees Web Naskh," which are sucessfully rendered by other GTK/pango apps like Gaim. Firefox under Windows XP/2000 does render these OTF fonts. Firefox substitutes other fonts in their place. These fonts can be downloaded from http://crulp.org/nafeesWebNaskh.html .
These are the best and freely available Urdu fonts and are specified by the largest Urdu newspaper site, http://jang.net/urdu .

Reproducible: Always

Steps to Reproduce:
1. Under Linux, View any site specifying "Nafees Web Naskh" fonts, e.g., http://jang.net/urdu
2. Other fonts are substituted in their place for Urdu text (compare by viewing the same site under Windows XP in Firefox).


Actual Results:  
The "Nafees Web Naskh" fonts are not rendered.

Expected Results:  
Expected to see the urdu text in "Nafees Web Naskh" fonts.

Should have displayed Urdu text in "Nafees Web Naskh" fonts as done by Gaim and QT applications.
Component: General → Layout: BiDi Hebrew & Arabic
Product: Firefox → Core
Version: unspecified → 1.8 Branch
Assignee: nobody → mozilla
QA Contact: general → zach
Assignee: mozilla → nobody
Component: Layout: BiDi Hebrew & Arabic → Layout: Fonts and Text
QA Contact: zach → layout.fonts-and-text
Can you provide some screenshots demonstrating this? (i.e. One in Windows with the font working, and one in Linux without it working.)
This is FF/windows XP: http://geocities.com/urdutext/gnwn.png

This is Konqueror/Linux: http://geocities.com/urdutext/kon.png

This is FF/Linux: http://geocities.com/urdutext/foxcu.png
Here the FF automatically substitutes fonts (clearlyU in the screenshot). These results are for Slackware 10, X Release 6.7.

Recently, Shariq (shariqmus@yahoo.co.uk) has informed me that FF on the latest Ubuntu 6 does render the "Nafees Web Naskh" fonts correctly. He has provided these  screen shots: http://www.chirah.com/boriat/temp/ubuntu_lin_nafees.jpg , which show correct rendering. Ubuntu 6 uses the very latest X and this might be the reason.
Can you paste in here the output of about:buildconfig in the copy of Firefox where the fonts are not working?
Here is the about:buildconfig of standard FF binary downloaded from mozilla, where the rendering problem occurs:

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe
c++ 	gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) 	-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -I/usr/X11R6/include

Configure arguments
--enable-application=browser --enable-update-channel=release --enable-update-packaging --disable-debug '--enable-optimize=-Os -freorder-blocks -fno-reorder-functions -gstabs+' --disable-tests --enable-official-branding --enable-default-toolkit=gtk2 --enable-xft --disable-freetype2 --enable-svg --enable-canvas --enable-static --disable-shared 
(In reply to comment #3)
> Can you paste in here the output of about:buildconfig in the copy of Firefox
> where the fonts are not working?
> 


Here is a buildconfig of firefox 1.5.0.1 running on Linux (Ubuntu 6.04, Dapper Drake!). Here Nafees is rendered correctly.

about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 4.0.3 20060115 (prerelease) (Ubuntu 4.0.2-7ubuntu1) 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe
c++ 	gcc version 4.0.3 20060115 (prerelease) (Ubuntu 4.0.2-7ubuntu1) 	-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe

Configure arguments
--prefix=/usr '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --enable-default-toolkit=gtk2 --with-default-mozilla-five-home=/usr/lib/firefox --enable-pango --with-user-appdir=.mozilla --with-system-png=/usr --with-system-jpeg=/usr --disable-mailnews --disable-composer --disable-ldap --enable-postscript --disable-installer --disable-xprint --enable-crypto --enable-strip-libs --enable-canvas --enable-svg --enable-svg-renderer=cairo --enable-system-cairo --enable-mathml --disable-tests --disable-gtktest --disable-debug --enable-xft '--enable-optimize=-pipe\ -w\ -O2' --with-system-zlib=/usr --without-system-nspr --enable-xinerama --enable-extensions=default --disable-pedantic --disable-long-long-warning --enable-single-profile --disable-profilesharing --enable-gnomevfs --enable-application=browser --disable-installer --disable-updater
(In reply to comment #3)
> Can you paste in here the output of about:buildconfig in the copy of Firefox
> where the fonts are not working?
> 

I am using Epiphany and Firefox on Ubuntu Breezy and Dapper. In Dapper both browsers do not render Nafees Web Naskh. In Breezy Firefox renders Nafees Web Naskh but Epiphany does not. I am pasting both buildconfig from both:

Firefox:
=======
Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe
c++ 	gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) 	-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe

Configure arguments
--prefix=/usr '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --enable-default-toolkit=gtk2 --with-default-mozilla-five-home=/usr/lib/mozilla-firefox --with-user-appdir=.mozilla --with-system-mng=/usr --with-system-png=/usr --with-system-jpeg=/usr --disable-mailnews --disable-composer --disable-ldap --enable-postscript --disable-installer --disable-xprint --enable-crypto --disable-svg --enable-mathml --disable-tests --disable-gtktest --enable-xft '--enable-optimize=-pipe\ -w\ -O2\ -DDEBIAN\ -fno-strict-aliasing' --with-system-zlib=/usr --with-gssapi=/usr --without-system-nspr --enable-xinerama --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth,typeaheadfind --disable-pedantic --disable-long-long-warning --enable-single-profile --disable-profilesharing --enable-gnomevfs --enable-pango --enable-svg-renderer-cairo --disable-strip-libs --disable-debug 


Epiphany:
==========
about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe
c++ 	gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) 	-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe

Configure arguments
--prefix=/usr '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --enable-default-toolkit=gtk2 --with-default-mozilla-five-home=/usr/lib/mozilla-firefox --with-user-appdir=.mozilla --with-system-mng=/usr --with-system-png=/usr --with-system-jpeg=/usr --disable-mailnews --disable-composer --disable-ldap --enable-postscript --disable-installer --disable-xprint --enable-crypto --disable-svg --enable-mathml --disable-tests --disable-gtktest --enable-xft '--enable-optimize=-pipe\ -w\ -O2\ -DDEBIAN\ -fno-strict-aliasing' --with-system-zlib=/usr --with-gssapi=/usr --without-system-nspr --enable-xinerama --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth,typeaheadfind --disable-pedantic --disable-long-long-warning --enable-single-profile --disable-profilesharing --enable-gnomevfs --enable-pango --enable-svg-renderer-cairo --disable-strip-libs --disable-debug  
Latest info from http://forums.mozillazine.org/viewtopic.php?t=452514 :
I found a temporary solution to the problem. It seems that my linux distro Ubuntu Dapper decided to use Pango support for selective locales only. Adding MOZ_DISABLE_PANGO=0 in /etc/environment has resolved the problem at my end.

The problem still remains valid it seems like many Linux distros are distributing firefox with pango support enabled for selective localed only. as you can see in the bug report that this problem was found in Fedora, Slackware and Ubuntu.

Does anyone have more informations about this?
Has this issue been fixed in your Firefox of Firefox at this time.2.0.0.0-3.0 rc1?
This wont be fixed in < 2.0 due to EOLS, if this is fixced in 2.0 can we close this bug please. I am unable to access such tools at this time.
The bug still exists in Slackware 12 with the latest Firefox (whether the FF is from slackware or directly from mozilla). Hacks like MOZ_ENABLE_PANGO=1 have no effect.
What's your definition of "latest"?  2.0.0.14?  3.0b5?  3.0rc1?  a nightly build (from which branch)?
I was referring to 2.0.0.14 in my last message. But just now I downloaded 3.0rc1 and viola, the "Nafees Web Naskh" font work beautifully, better than KDE apps which mess up some spacing between letters. So if there is no regression, the bug can be considered fixed as far as I can see (have tested on Slackware 12 only). Thanks very much!
WORKSFORME per last comment.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.