View previous topic :: View next topic |
Author |
Message |
jorges Tux's lil' helper
Joined: 31 Oct 2005 Posts: 114 Location: Barcelona, Spain
|
Posted: Sat Apr 14, 2007 5:48 pm Post subject: [SOLVED] Color fringing in fonts |
|
|
Hi,
I don't know for how long this have been happening. I just started noticing yesterday after playing a bit with ~/.fonts.conf, freetype, libXft and cairo (these last two actually from xeffects overlay). I set freetype and cairo ~amd64 to check the latest subpixel hinting improvements. The font do look nice, but at the same time I started noticing a lot of color fringing with some fonts (I can't tell which type, family, etc. Is there an easy way to know this in different apps?). See this screenshot from firefox for an example of what I am talking about.
After noticing this I went back to non-masked packages, and the effect is still quite noticeable.
Anyone know if this is something we have to live with, or if there is something that can be done to improve it? I don't even know whose blame it is, freetype, its configuration, some specific fonts (I believe this is more related to some specific font sizes)?
EDIT: The problem seems to be solved now. I had installed mozilla-firefox-bin, which was probably not using the right libraries. Installing mozilla-firefox has improved the situation a lot in firefox. Some color fringes do appear in other apps. but not as severe as it did on firefox, so this may be a side effect of subpixel hinting.
jorges
Last edited by jorges on Mon Apr 16, 2007 1:25 am; edited 1 time in total |
|
Back to top |
|
|
StringCheesian l33t
Joined: 21 Oct 2003 Posts: 887
|
Posted: Sat Apr 14, 2007 5:56 pm Post subject: |
|
|
Color fringes usually mean that the kind of subpixel rendering you've enabled doesn't match your monitor.
If you've got a CRT you probably want subpixel rendering off because it will aways result in color fringes. If you've got an LCD, switching between vertical/horizontal should eliminate the fringes.
http://www.grc.com/ctwhat.htm
http://en.wikipedia.org/wiki/Subpixel_rendering |
|
Back to top |
|
|
jorges Tux's lil' helper
Joined: 31 Oct 2005 Posts: 114 Location: Barcelona, Spain
|
Posted: Sat Apr 14, 2007 9:30 pm Post subject: |
|
|
StringCheesian wrote: | Color fringes usually mean that the kind of subpixel rendering you've enabled doesn't match your monitor.
If you've got a CRT you probably want subpixel rendering off because it will aways result in color fringes. If you've got an LCD, switching between vertical/horizontal should eliminate the fringes.
http://www.grc.com/ctwhat.htm
http://en.wikipedia.org/wiki/Subpixel_rendering |
I've got an LCD, so the problem is elsewhere. I am nowy using freetype-2.3.3 from gentoo and libXft-2.1.12 and cairo-1.4.2 from xeffects overlay (with newspr use flag). Most font rendering is very good,but I still get some bad rendering, for example when seeing local files on firefox. I've read on the freetype list that not every font can be rendered graciously with subpixel rendering, so maybe it's just this.
jorges |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Apr 14, 2007 9:50 pm Post subject: |
|
|
Show your ~/.fonts.conf - here's mine, and fonts look fantastic with the xeffects overlay
Code: | <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Info:
http://forums.gentoo.org/viewtopic-t-511382.html
http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts
http://wiki.archlinux.org/index.php/XOrg_Font_Configuration
-->
<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable">
<bool>false</bool>
</patelt>
</pattern>
</rejectfont>
</selectfont>
<!-- Replace Courier with a better-looking font -->
<match name="family" target="pattern">
<test name="family" qual="any">
<string>Courier</string>
</test>
<edit name="family" mode="assign">
<!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<!-- Replace Courier New with a better-looking font -->
<match name="family" target="pattern">
<test name="family" qual="any">
<string>Courier New</string>
</test>
<edit name="family" mode="assign">
<!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<!-- hintnone, hintslight, hintmedium, hintfull -->
<!-- Keep autohint off -->
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
</match>
<!-- Disable hinting for bold fonts -->
<match target="font">
<test name="weight" compare="more"><const>medium</const></test>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>false</bool></edit>
</match>
</fontconfig> |
I had a little problem with bold fonts in gnome-terminal, which was fixed with x11-libs/vte-0.16.1 |
|
Back to top |
|
|
jorges Tux's lil' helper
Joined: 31 Oct 2005 Posts: 114 Location: Barcelona, Spain
|
Posted: Sat Apr 14, 2007 10:31 pm Post subject: |
|
|
PaulBredbury wrote: | Show your ~/.fonts.conf - here's mine, and fonts look fantastic with the xeffects overlay
...
I had a little problem with bold fonts in gnome-terminal, which was fixed with x11-libs/vte-0.16.1 |
I just tried yours and I agree that fonts look very nice. However, if I open a local file, say "/usr/share/doc/fontconfig-2.4.2/html/fontconfig-user.html", then the fringes are very noticeable. See this.
jorges |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Apr 14, 2007 10:42 pm Post subject: |
|
|
I suspect your compilation is not correct. See wiki. Note that newspr relates to 2 packages. Recompile all 3 packages, in the order that the wiki states, then restart X.
I'm using these versions:
Code: | $ emerge -pv media-libs/freetype x11-libs/cairo x11-libs/libXft
[ebuild R ] media-libs/freetype-2.3.4 USE="zlib -bindist -debug -doc" 0 kB [2]
[ebuild R ] x11-libs/cairo-1.4.2 USE="X glitz newspr svg -debug -directfb -doc -xcb" 0 kB [1]
[ebuild R ] x11-libs/libXft-2.1.12 USE="newspr -debug" 0 kB |
|
|
Back to top |
|
|
jorges Tux's lil' helper
Joined: 31 Oct 2005 Posts: 114 Location: Barcelona, Spain
|
Posted: Sat Apr 14, 2007 11:09 pm Post subject: |
|
|
PaulBredbury wrote: | I suspect your compilation is not correct. See wiki. Note that newspr relates to 2 packages. Recompile all 3 packages, in the order that the wiki states, then restart X.
I'm using these versions:
Code: | $ emerge -pv media-libs/freetype x11-libs/cairo x11-libs/libXft
[ebuild R ] media-libs/freetype-2.3.4 USE="zlib -bindist -debug -doc" 0 kB [2]
[ebuild R ] x11-libs/cairo-1.4.2 USE="X glitz newspr svg -debug -directfb -doc -xcb" 0 kB [1]
[ebuild R ] x11-libs/libXft-2.1.12 USE="newspr -debug" 0 kB |
|
I just re-installed, same thing. Only difference I have is that freetype is version 2.3.3. I haven't tried the snapshot from xeffects. I might try now and post back.
EDIT: Same thing with freetype snapshot. That's it, I give up! The fonts are good enough now, and I have too much to do
jorges |
|
Back to top |
|
|
musicman n00b
Joined: 13 Jun 2004 Posts: 66
|
Posted: Sun May 20, 2007 6:47 pm Post subject: |
|
|
I seem to have this same problem, but only in 32-bit applications running on my amd64 machine. Everything I compiled myself from scratch looks fine. For example, I have both 32 and 64 bit Firefox installed. When run with "firefox," it runs the 64 bit version and looks great. When run with "firefox-bin," it runs the 32 bit version and has lots of fringing. |
|
Back to top |
|
|
|
|
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
|
|