FS#15343 - [firefox] 3.5 doesn't respect system-wide anti-aliasing settings
Attached to Project:
Arch Linux
Opened by Radu Potop (wooptoo) - Thursday, 02 July 2009, 12:07 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 18 January 2010, 23:27 GMT
Opened by Radu Potop (wooptoo) - Thursday, 02 July 2009, 12:07 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 18 January 2010, 23:27 GMT
|
Details
Description:
I have anti-aliasing turned off for fonts under 12px. Firefox 3.0 did respect these settings, but after upgrading to Firefox 3.5 all fonts are anti-aliased, even those smaller than 12px. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Monday, 18 January 2010, 23:27 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments. Firefox is stupid
Monday, 18 January 2010, 23:27 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments. Firefox is stupid
http://bbs.archlinux.org/viewtopic.php?id=40990
ac_add_options --enable-system-cairo
http://bbs.archlinux.org/viewtopic.php?pid=579688#p579688
It appears that FF 3.5 is forcing hinting (but not anti-aliasing as suggested above), regardless of fontconfig or ~/.fonts.conf settings. My ~/.fonts.conf is attached. I've also tried forcing off hinting in /etc/fonts/conf.d with no success.
In my experience antialiasing can be toggled, but hinting cannot and when that's the case the fonts are practically illegible. I'm not using gnome-settings-daemon however, just a simple ~/.fonts.conf. And FWIW I'm using all vanilla cairo/freetype/fontconfig packages--none that tweaked stuff.
None: fat characters, very ugly
Slight: a bit more fat characters, even more ugly
Medium: looks good and sharp
Full: looks good and sharp also
Or someone tell me that this is desired behaviour for hinting :P
--- cairo-1.7.6-orig/src/cairo-ft-font.c 2008-09-29 21:43:13.000000000 +0100
+++ cairo-1.7.6/src/cairo-ft-font.c 2008-09-29 21:52:19.000000000 +0100
@@ -1705,7 +1705,9 @@
options->base.subpixel_order = other->base.subpixel_order;
}
- if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
+ options->base.hint_style = CAIRO_HINT_STYLE_DEFAULT;
+
+ if (other->base.hint_style != CAIRO_HINT_STYLE_DEFAULT)
options->base.hint_style = other->base.hint_style;
if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
Info threads to wade through:
http://www.fedoraforum.org/forum/showthread.php?t=186789&page=4
http://forums.gentoo.org/viewtopic-t-511382-postdays-0-postorder-asc-start-700.html
Here's mine: http://pastebin.com/f3f219efb
This solution is also at http://ubuntuforums.org/showthread.php?t=1200992
http://pastebin.com/f6eb48a09
Looks like antialiasing is disabled, to me. If you still think there's a problem, post your complete ~/.fonts.conf, and enable cairo-respect-fontconfig.patch ( http://pastebin.com/f6b495b17 ) in the cairo package.
* antialiasing OFF
* autohint OFF
* hinting ON
* hintstyle HINTFULL
This, for some reason, now produces the Windows 98/XP style font rendering I've been trying to restore.
<!-- Firefox fix (it uses pixelsize, instead of size) -->
<match target="font">
<test compare="less_eq" name="pixelsize" qual="any">
<int>16</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
Firefox is stupid.