You are not logged in.

#1 2007-12-12 21:46:11

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

[Sucess!] Firefox 3 beta: Subpixel font rendering

I might be a little fussy when it comes to fonts but I have the feeling that the beta of FF3 does not honour Gnome's subpixel rendering settings. I'm seeing this particularly in the user interface not so much in the rendered pages. Has anyone else observed this or am I just paranoid?

Does anyone know about a patch for this? There are a number of font-related patches applied to the FF2 Arch build, but they seem to be about pango.

http://www.archlinux.org/packages/13473/

Last edited by lenni (2008-01-03 16:56:47)

Offline

#2 2007-12-12 23:42:22

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

What version do you have exactly ? I've read bad things about FF3 under beta2pre8.

Offline

#3 2007-12-13 02:06:42

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Hmm, good question. I'm running the 3.0b2pre-1 build that is in AUR. This page

http://ftp.mozilla.org/pub/mozilla.org/ … est-trunk/

states that there is a beta 3 out, right? Maybe the problem will be solved there...

Offline

#4 2007-12-13 11:18:03

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Yeah well it's bit early to talk bout beta3. The beta2 will be available in late december so I guess beta3 won't be out before late january. But of course if you use the nightlies it doesn't matter.

BTW did the latest nightly fixed your problem ?

Offline

#5 2007-12-29 21:37:43

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

I found the culprit and a solution. Firefox 3 uses its own cairo version instead of my (patched) system one.

When building Fx3 the following build option needs to be enabled: "--enable-system-cairo"

If only I knew how to do that. Any ideas?

Last edited by lenni (2007-12-29 22:43:34)

Offline

#6 2007-12-29 22:04:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

The mozconfig file that's part of the AUR tarball has the compile options. Adding:

ac_add_options --with-system-cairo

to the file should work.

Note: makepkg will fail if you change that file because of md5sums. Delete that line out of the 'source' array to build.

Offline

#7 2007-12-29 22:09:13

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

I think that should be

ac_add_options --enable-system-cairo


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#8 2007-12-29 22:16:57

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Yes, of course. Thanks. Really it just need to be uncommented.

Last edited by skottish (2007-12-29 22:17:51)

Offline

#9 2007-12-29 22:21:37

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

But it requires cairo 1.5.4, which is the current "preview" version.  I guess you'd have to update the cairo package manually before compiling firefox with it.

Offline

#10 2007-12-29 22:53:11

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Is there a LCD patch for that preview version? Or has it merged upstream? I'm rather fond of the improved hinting...

Edit: I'm going to try cairo-ubuntu from AUR. I'm not sure what exactly the Ubuntu patch does but the version is 1.5.4.

Last edited by lenni (2007-12-29 23:07:44)

Offline

#11 2007-12-29 23:00:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

The cairo-ubuntu package in AUR has a version that's new enough for Firefox3 with the LCD patch. The newer Cairo versions are considered to be buggy though.

Offline

#12 2007-12-30 00:18:03

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

If they are buggy why does Firefox 3 use them?

Last edited by lenni (2007-12-30 00:20:35)

Offline

#13 2007-12-30 00:28:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

lenni wrote:

If they are buggy why does Firefox 3 use them?

Honestly, Firefox3 is very buggy. I've found many things that aren't working properly. I suppose the idea is that the bugs will be worked out of it and it's supporting libraries before the final release. After all, it's still in beta.

Offline

#14 2007-12-30 17:13:50

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

I was downloading the following build: http://aur.archlinux.org/packages.php?d … ns=&SeB=nd

However, I can't find a mozconfig file. I also looked in the source tarball and no avail. How do I tell make to use a mozconfig file?

Offline

#15 2007-12-30 17:16:30

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

The link you posted is for the "nightlies". I was using the:

http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

Offline

#16 2007-12-30 17:19:31

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

This explains a lot! Thank you. I was just using the wrong AUR package all along.

Last edited by lenni (2007-12-30 17:20:31)

Offline

#17 2007-12-30 19:22:49

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

I have installed cairo-ubuntu now. Then I uncommented the "enable-system-cairo" line and tried to build but I get the following error message:

gfxPlatformGtk.cpp:(.text+0x6fb): undefined reference to `XRenderFindStandardFormat'
collect2: ld returned 1 exit status
make[4]: *** [libxul.so] Error 1
make[4]: Leaving directory `/var/abs/local/firefox3/firefox3/src/mozilla/toolkit/library'
make[3]: *** [libs_tier_toolkit] Error 2
make[3]: Leaving directory `/var/abs/local/firefox3/firefox3/src/mozilla'
make[2]: *** [tier_toolkit] Error 2
make[2]: Leaving directory `/var/abs/local/firefox3/firefox3/src/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/abs/local/firefox3/firefox3/src/mozilla'
make: *** [build] Error 2

Last edited by lenni (2007-12-30 19:23:07)

Offline

#18 2007-12-31 05:00:49

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

"Bug 368576 – undefined reference to `XRenderFindStandardFormat' while compiling"

https://bugzilla.mozilla.org/show_bug.cgi?id=368576#c0  (scroll down a bit)

adding -lXrender to the command fixed the problem.

The problem seems to be that the Makefile only adds -lXrender to the LDFLAGS,
if MOZ_ENABLE_CAIRO_GFX is enabled (from layout/build/Makefile):


ifdef MOZ_ENABLE_CAIRO_GFX
EXTRA_DSO_LDOPTS += -lXrender \
            $(NULL)
endif

Perhaps still a valid solution on 3.0b2?

Offline

#19 2007-12-31 12:06:29

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Okay, it's getting complicated. I have added these lines to Makefile and Makefile.in now it throws me this error:

../../staticlib/components/libaccessibility.a: member ../../staticlib/components/libaccessibility.a(nsAccessibleWrap.o) in archive is not an object
collect2: ld returned 1 exit status
make[4]: *** [libxul.so] Error 1
make[4]: Leaving directory `/var/abs/local/firefox3/src/mozilla/toolkit/library'
make[3]: *** [libs_tier_toolkit] Error 2
make[3]: Leaving directory `/var/abs/local/firefox3/src/mozilla'
make[2]: *** [tier_toolkit] Error 2
make[2]: Leaving directory `/var/abs/local/firefox3/src/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/abs/local/firefox3/src/mozilla'
make: *** [build] Error 2

Well, I can see we really going deep into the mozilla build system.

Last edited by lenni (2007-12-31 12:07:19)

Offline

#20 2007-12-31 14:59:29

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Dumb question, but did you run make clean first?

Offline

#21 2008-01-03 12:53:52

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Well, I started all and deleted the pkg and src folders that had been created in the first build attempt and it throws me the old error. I guess I'll have to dig in the Mozilla bug tracker.

Thanks for your responses.

Edit: Success! I builds and runs! I had to add the following line to the PKGBUILD:

export LDFLAGS='-lX11 -lXrender'

After a bit of testing I will upload the whole thing to AUR.

Last edited by lenni (2008-01-03 16:55:31)

Offline

#22 2008-01-03 17:16:28

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Offline

#23 2008-01-03 17:25:18

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Cool, but it should depend on cairo - it does not actually require Ubuntu's patches, it just needs a particular version of *cairo*, which is what cairo-ubuntu provides.

Offline

#24 2008-01-03 17:28:34

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Screenshot please. smile

Offline

#25 2008-01-04 11:18:21

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: [Sucess!] Firefox 3 beta: Subpixel font rendering

Screenshot:

http://www.flickr.com/photos/24003367@N00/2165854596/

By the way, the del.icio.us add-on does work with Fx3. Just download the xpi-file, which is a renamed zip, and edit  install.rdf:

Change the em:maxVersion variable to '3.0.0.'. I can't publish it (no derivatives license) but if you have problems I can email it to you. (source: http://devlicio.us/blogs/brendantompkin … ta-1.aspx)

Last edited by lenni (2008-01-04 12:19:36)

Offline

Board footer

Powered by FluxBB