Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird Fonts with Firefox [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Sun Jan 02, 2005 11:11 pm    Post subject: Weird Fonts with Firefox [SOLVED] Reply with quote

hi,

after having switched to gcc3.4 and newest glibc both firefox and thunderbird have changed their aspect and now they look very bad.

here's a screenshot (after having switched to gcc3.4, before having made any try): http://xoomer.virgilio.it/fctk/screenshot.png

enabling/disabling some options in about:config (in firefox) i had been able to adjust the way in which pages are rendered and in this way they look ok.

the problem is now that i can't see the list of all my truetype font in edit > preferences > fonts & colors. i have both corefonts and ttf-bitstream-vera installed. this problem is solved if i recompile firefox without gtk2 use flag, but gtk1 doesn't look so that good... :cry:

actually firefox version is 1.0_rc2. i also tried 1.0 and 1.0-r3 (the latter has no gtk2 use flag). same problem.

xorg.conf and /etc/local/fonts.conf are the same as before everything.

i don't know what to do... no ideas... :cry:


Last edited by fctk on Wed Jan 05, 2005 7:54 am; edited 1 time in total
Back to top
View user's profile Send private message
clockwise
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 152
Location: uk

PostPosted: Sun Jan 02, 2005 11:32 pm    Post subject: Reply with quote

i'll hazard a guess that you have "moznoxft" in your USE variables.
_________________
"if an injury has to be done to a man it should be so severe that his vengeance need not be feared." - niccolò machiavelli
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jan 03, 2005 9:35 am    Post subject: Reply with quote

no i don't have it... moznoxft is disabled...
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4394
Location: Suzhou, China

PostPosted: Mon Jan 03, 2005 9:53 am    Post subject: Reply with quote

Try remerging the newest freetype and mozilla-firefox
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jan 03, 2005 10:10 am    Post subject: Reply with quote

Code:
thorium fctk # emerge -av freetype mozilla-firefox

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/freetype-2.1.9-r1 [2.1.5-r1] -bindist -debug -doc +zlib 0 kB
[ebuild  N    ] net-www/mozilla-firefox-1.0-r3  -debug -gnome +java -ldap -mozdevelop -moznoxft -mozsvg -mozxmlterm -xinerama -xprint 0 kB


i'm emerging now.

anyway in the meantime i emerged firefox-bin and thunderbird-bin and they work great (look ok, they recognize all tt fonts). so i think the problem is not in font configuration but in the way i compiled them (use flags, gcc, glibc, ntpd?,utf-8 etc...)
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jan 03, 2005 11:21 am    Post subject: Reply with quote

same fonts with firefox-1.0-r3.
returning back to firefox-1.0_rc2 (but also keeping freetype-2.1.9-r1):
Code:
[ebuild     UD] net-www/mozilla-firefox-1.0_rc2 [1.0-r3] -debug -gnome +gtk2 -ipv6 +java -ldap -mozdevelop -moznoxft -mozxmlterm +truetype -xinerama -xprint 0 kB
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jan 03, 2005 11:52 am    Post subject: Reply with quote

i get this error:
Code:
nsFreeType.cpp:285: error: `nsresult nsFreeType2::ImageCacheLookup' is not a static member of `class nsFreeType2'
nsFreeType.cpp:285: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:285: error: `FTC_Image_Desc' was not declared in this scope
nsFreeType.cpp:285: error: `desc' was not declared in this scope
nsFreeType.cpp:286: error: expected primary-expression before "glyphID"
nsFreeType.cpp:286: error: expected primary-expression before '*' token
nsFreeType.cpp:286: error: `glyph' was not declared in this scope
nsFreeType.cpp:287: error: initializer expression list treated as compound expression
nsFreeType.cpp:287: error: expected `,' or `;' before '{' token
nsFreeType.cpp:323: error: `FTC_Image_Cache' has not been declared
nsFreeType.cpp:324: error: ISO C++ forbids declaration of `cache' with no type
nsFreeType.cpp:392: error: `nsresult nsFreeType2::GetImageCache' is not a static member of `class nsFreeType2'
nsFreeType.cpp:392: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:392: error: `aCache' was not declared in this scope
nsFreeType.cpp:393: error: expected `,' or `;' before '{' token
nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()':
nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this function)
nsFreeType.cpp:429: error: (Each undeclared identifier is reported only once for each function it appears in.)
nsFreeType.cpp: In member function `PRBool nsFreeType2::InitLibrary()':
nsFreeType.cpp:668: error: `mImageCache' undeclared (first use this function)
gmake[4]: *** [nsFreeType.o] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0_rc2/work/mozilla/gfx/src/freetype'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0_rc2/work/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0_rc2/work/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0_rc2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-firefox-1.0_rc2 failed.
!!! Function src_compile, Line 88, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Jan 03, 2005 1:19 pm    Post subject: Reply with quote

i looked at the logs in /var/log/portage and i discovered a thing. in all firefoxes and thunderbirds before the emerge -e world i see this:
Code:
--enable-xft                    gtk2 with xft2 (+gtk2 -moznoxft)

in all firefoxes and thunderbirds after it i see this instead:
Code:
    --disable-xft                   gtk2 without xft2 (bad pango version <1.1)


when i said to compile with -gtk2 i instead see:
Code:
--enable-xft                    gtk1 with xft2 (-gtk2 -moznoxft)


what's wrong with pango???
my installed version of pango is: 1.6.0.
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Wed Jan 05, 2005 7:53 am    Post subject: Reply with quote

i finally discovered the problem is related to the locale.
if i compile ff or thund after having switched to POSIX locale everything is looks ok. if i compile them with utf-8 locale they looks bad.
this explain why the problem is arisen after the emerge -e world. in fact before having done this i set the locale to utf-8... before it was it_IT@euro.
anyway i think this is a bug so i'll post it to bugs.gentoo.org as soon as i can.

/EDIT: http://bugs.gentoo.org/show_bug.cgi?id=76734
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum