Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 116927

Summary: firefox 1.5 cannot show asia font clearly (mozilla-firefox-1.5-r4 &r3)
Product: Gentoo Linux Reporter: Stephen, Feng <seahome45>
Component: New packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED INVALID    
Severity: normal CC: s.geschwandtner, seahome, zeekec
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stephen, Feng 2005-12-27 15:22:57 UTC
firefox 1.5 generated from mozilla-firefox-1.5-r4 & r3 cannot show chinese font clearly, all non-english font are blurred, but the binary ebuild mozilla-firefox-bin-1.5-r1 has no such problem. The mozilla and Epiphany in Gnome has no such problem too.

The following is my emerge info:
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.1 2-reiser4-r13 i686)
=================================================================
System uname: 2.6.12-reiser4-r13 i686 Intel(R) Celeron(R) CPU 2.93GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mtune=prescott -pipe -fomit-frame-pointer -ftracer -fforce-addr -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/ config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr /share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=prescott -mtune=prescott -pipe -fomit-frame-pointer -ftrace r -fforce-addr -fprefetch-loop-arrays -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X alsa apm audiofile avi berkdb bitmap-fonts bzip2 cdr cjk crypt cups d irectfb divx4linux dvb eds emboss encode esd exif expat fam ffmpeg foomaticdb fo rtran gd gdbm ggi gif glut gmp gnome gpm gstreamer gtk gtk2 hal howl imagemagick  imlib java jpeg junit lcms libg++ libwww lirc mad mikmod mmx mmxext mng motif m ozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl pic plotutils png python quicktime readline real sdl spell sse sse2 ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts udev v4l v4l2 vidix vorbis win32codecs xine xml2 xmms xprint xv xvid zlib userland_GNU kernel_ linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 Jory A. Pratt 2005-12-27 19:58:48 UTC
first off as I have not added it to ebuild yet have you moved your current profile out of the way and allowed firefox to create a fresh one? If you have not please do and test, also check for .fonts.conf if you have it move it out of way and test as well.
Comment 2 stephen 2005-12-30 00:50:15 UTC
I did all as you suggest, but it doesn't work. Later, I found that the ebuild take the option "--disable-freetype2" when it set the configure of the firefox. I guess that is the reason why the firefox cannot show chinese fonts clearly without "freetype" support.

The following comes from the screen when processing the ebuild (emerge mozilla-firefox), please notice that --disable-freetype2 is on (16th line count from the bottom).

Thanks.


==========================================================
Building mozilla-firefox-1.5-r4 with the following configuration
    --enable-application=browser    mozilla.org default
    --enable-optimize=-O2           mozilla fallback
    --enable-old-abi-compat-wrappers  building with >=gcc-3
    --disable-installer             gentoo
    --disable-pedantic              gentoo
    --enable-crypto                 gentoo
    --with-system-jpeg              gentoo
    --with-system-png               gentoo
    --with-system-zlib              gentoo
    --without-system-nspr           gentoo
    --disable-updater               gentoo
    --enable-single-profile         gentoo
    --disable-profilesharing        gentoo
    --disable-profilelocking        gentoo
    --enable-default-toolkit=gtk2   gentoo
    --enable-pango                  gentoo
    --enable-svg                    gentoo
    --enable-svg-renderer=cairo     gentoo
    --enable-system-cairo           gentoo
    --disable-ipv6                  -ipv6
    --disable-xinerama              -xinerama
    --enable-xprint                 +xprint
    --disable-freetype2             gentoo
    --disable-debug                 -debug
    --disable-tests                 -debug
    --enable-reorder                -debug
    --enable-strip                  -debug
    --enable-strip-libs             -debug
    --enable-elf-dynstr-gc          x86 optimized build
    --enable-extensions=default,typeaheadfind  mozilla.org default
    --disable-mailnews              mozilla.org default
    --enable-image-encoder=all      mozilla.org default
    --enable-canvas                 mozilla.org default
    --enable-oji                    mozilla.org default
    --enable-mathml                 mozilla.org default
    --disable-jsd                   -mozdevelop
    --disable-xpctools              -mozdevelop
    --enable-extensions=-venkman    -mozdevelop
    --with-default-mozilla-five-home=/usr/lib/mozilla-firefox  mozilla.org default
==========================================================

 * has_hardened: deprecated, please use gcc-specs-{relro,now}()!
 * econf: updating mozilla/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating mozilla/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating mozilla/directory/c-sdk/config/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating mozilla/directory/c-sdk/config/autoconf/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating mozilla/nsprpub/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating mozilla/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
Adding configure options from ./.mozconfig:
  --enable-application=browser
  --enable-optimize=-O2
  --enable-old-abi-compat-wrappers
  --disable-installer
  --disable-pedantic
  --enable-crypto
  --with-system-jpeg
  --with-system-png
  --with-system-zlib
  --without-system-nspr
  --disable-updater
  --enable-single-profile
  --disable-profilesharing
  --disable-profilelocking
  --enable-default-toolkit=gtk2
  --enable-pango
  --enable-svg
  --enable-svg-renderer=cairo
  --enable-system-cairo
  --disable-ipv6
  --disable-xinerama
  --enable-xprint
  --disable-freetype2
  --disable-debug
  --disable-tests
  --enable-reorder
  --enable-strip
  --enable-strip-libs
  --enable-elf-dynstr-gc
  --disable-mailnews
  --enable-image-encoder=all
  --enable-canvas
  --enable-oji
  --enable-mathml
  --disable-jsd
  --disable-xpctools
  --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
  --enable-extensions=default,typeaheadfind,-venkman



(In reply to comment #1)
> first off as I have not added it to ebuild yet have you moved your current
> profile out of the way and allowed firefox to create a fresh one? If you have
> not please do and test, also check for .fonts.conf if you have it move it out
> of way and test as well.
> 
Comment 3 Sascha G. 2006-01-01 14:58:24 UTC
(In reply to comment #2)

> I did all as you suggest, but it doesn't work. Later, I found that the ebuild
> take the option "--disable-freetype2" when it set the configure of the firefox.
> I guess that is the reason why the firefox cannot show chinese fonts clearly
> without "freetype" support.

No, it probably doesn't. It has been put in there deliberately (for reasons I have forgotten :-). On my system, Firefox shows asian fonts quite nicely.
Can you give a URL as an example? Perhaps there is something in a web page that triggers a bug.
But I suppose that your problem has to do with your CFLAGS/CXXFLAGS/LDFLAGS, which are somewhat extensive and rather uncommon.
The toolchain, especially gcc, is by no means perfect, so it is at least in this case a good idea not to stray too far away from the masses.
Comment 4 stephen 2006-01-01 18:12:15 UTC
It shouldn't be the problems for CFLAGS/CXXFLAGS/LDFLAGS. My mozilla and Epiphany works very well for asian/chinese fonts. I know some one else has the same problem as mine on gentoo firefox-1.5-r4.



(In reply to comment #3)
> (In reply to comment #2)
> 
> > I did all as you suggest, but it doesn't work. Later, I found that the ebuild
> > take the option "--disable-freetype2" when it set the configure of the firefox.
> > I guess that is the reason why the firefox cannot show chinese fonts clearly
> > without "freetype" support.
> 
> No, it probably doesn't. It has been put in there deliberately (for reasons I
> have forgotten :-). On my system, Firefox shows asian fonts quite nicely.
> Can you give a URL as an example? Perhaps there is something in a web page that
> triggers a bug.
> But I suppose that your problem has to do with your CFLAGS/CXXFLAGS/LDFLAGS,
> which are somewhat extensive and rather uncommon.
> The toolchain, especially gcc, is by no means perfect, so it is at least in
> this case a good idea not to stray too far away from the masses.
> 

(In reply to comment #3)
> (In reply to comment #2)
> 
> > I did all as you suggest, but it doesn't work. Later, I found that the ebuild
> > take the option "--disable-freetype2" when it set the configure of the firefox.
> > I guess that is the reason why the firefox cannot show chinese fonts clearly
> > without "freetype" support.
> 
> No, it probably doesn't. It has been put in there deliberately (for reasons I
> have forgotten :-). On my system, Firefox shows asian fonts quite nicely.
> Can you give a URL as an example? Perhaps there is something in a web page that
> triggers a bug.
> But I suppose that your problem has to do with your CFLAGS/CXXFLAGS/LDFLAGS,
> which are somewhat extensive and rather uncommon.
> The toolchain, especially gcc, is by no means perfect, so it is at least in
> this case a good idea not to stray too far away from the masses.
> 

(In reply to comment #3)
> (In reply to comment #2)
> 
> > I did all as you suggest, but it doesn't work. Later, I found that the ebuild
> > take the option "--disable-freetype2" when it set the configure of the firefox.
> > I guess that is the reason why the firefox cannot show chinese fonts clearly
> > without "freetype" support.
> 
> No, it probably doesn't. It has been put in there deliberately (for reasons I
> have forgotten :-). On my system, Firefox shows asian fonts quite nicely.
> Can you give a URL as an example? Perhaps there is something in a web page that
> triggers a bug.
> But I suppose that your problem has to do with your CFLAGS/CXXFLAGS/LDFLAGS,
> which are somewhat extensive and rather uncommon.
> The toolchain, especially gcc, is by no means perfect, so it is at least in
> this case a good idea not to stray too far away from the masses.
> 
Comment 5 Jory A. Pratt 2006-01-04 15:15:47 UTC
I still do not see where freetype comes into this mess. Even upstream binary does not use include freetype support.
Comment 6 stephen 2006-01-08 01:37:26 UTC
Finally,I found the where the problem is. The firefox is fine! I didn't set my font correct in system. I have to make some changes on /etc/fonts/local.conf to make both the default system fonts and my added fonts shows perfectly especially for those fonts contains bitmap fonts. Thanks for anyone!
Comment 7 Erik Zeek 2006-01-09 09:39:14 UTC
(In reply to comment #6)
> Finally,I found the where the problem is. The firefox is fine! I didn't set my
> font correct in system. I have to make some changes on /etc/fonts/local.conf to
> make both the default system fonts and my added fonts shows perfectly
> especially for those fonts contains bitmap fonts. Thanks for anyone!
> 

If this is fixed plase close it.
Comment 8 stephen 2006-01-09 14:09:10 UTC
I have no idea to close it. If anyone can, please do it. Thanks.

(In reply to comment #7)
> If this is fixed plase close it.
> 

Comment 9 Erik Zeek 2006-01-12 07:28:35 UTC
(In reply to comment #8)
> I have no idea to close it. If anyone can, please do it. Thanks.
> 

The original poster (OP) can close it or a maintainer (I'm neither).

Stephen, judging by your email address it appears that you might be the OP, but you're logging on with a different account.  If so and you log into your original account, you should be able to change the resolution of the bug (just above the commit button).  I'm not an expert, but I think that this should be set as INVALID, as this wasn't an actual problem with Firefox.
Comment 10 Jory A. Pratt 2006-01-12 08:35:56 UTC
not a problem with firefox.