Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]New freetype subpixel font rendering for lcd monitors
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 28, 29, 30  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Thu Jun 12, 2008 10:27 am    Post subject: Reply with quote

GoofyX wrote:
Hey guys, boniek seems to have not replied to this thread for some time now. What's the status with the font rendering patches? I'm still using boniek's overlay, but during the latest weeks, it has been unable to sync, since the host is down. Should I use a new overlay (although the current one seems to work pretty fine)?
People have been using soor-overlay, but that hasn't been updated for nearly a month now. media-libs/freetype has just been bumped to 2.3.6 in portage due to security issues, but soor-overlay's version is still the vulnerable 2.3.5-r2, so we may have a problem if this overlay isn't updated any more.

Could be time for someone else to make yet another overlay for these font patches; how long will that overlay last?
_________________
If ~amd64 ebuilds are cutting edge, then git-9999 ebuilds are chainsaws.
"Not everyone can ride a unicycle, does that mean we should put another wheel on it?" - Lokheed
Back to top
View user's profile Send private message
GoofyX
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2005
Posts: 84
Location: Greece

PostPosted: Thu Jun 12, 2008 10:38 am    Post subject: Reply with quote

The truth is that maintaining an overlay requires time and it's not always the easiest thing to do. Until these patches are accepted in the official portage tree or even better upstream, we will have to deal with this situation...

The least we can do is to thank all those people that maintain overlays such as the soor-overlay.
_________________
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Fri Jun 13, 2008 2:04 pm    Post subject: Reply with quote

I've ported the patches to fontconfig-2.6.0, freetype-2.3.6 and cairo-1.6.4 and fixed a few issues. PM me if you want the ebuilds and patches.
Back to top
View user's profile Send private message
GoofyX
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2005
Posts: 84
Location: Greece

PostPosted: Fri Jun 13, 2008 3:22 pm    Post subject: Reply with quote

bi3l wrote:
I've ported the patches to fontconfig-2.6.0, freetype-2.3.6 and cairo-1.6.4 and fixed a few issues. PM me if you want the ebuilds and patches.


Why don't you post them here?
_________________
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Fri Jun 13, 2008 6:40 pm    Post subject: Reply with quote

Here it is: http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2
Back to top
View user's profile Send private message
GoofyX
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2005
Posts: 84
Location: Greece

PostPosted: Fri Jun 13, 2008 6:44 pm    Post subject: Reply with quote

Nice, thank you! :)
_________________
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
Back to top
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Fri Jun 13, 2008 11:34 pm    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
natros
n00b
n00b


Joined: 26 Sep 2003
Posts: 70

PostPosted: Sat Jun 14, 2008 12:56 pm    Post subject: Reply with quote

thank you
_________________
-=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=-
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sat Jun 14, 2008 1:08 pm    Post subject: Reply with quote

Don't forget to emerge cairo again after upgrading freetype and fontconfig. There is no need to emerge libXft again.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sat Jun 14, 2008 11:24 pm    Post subject: Reply with quote

bi3l wrote:
Here it is: http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2

Thank you for taking the time and effort to do this.

I've been wondering though, why the masked version of fontconfig is patched, while the rest are the stable versions? Is there something special about the 2.6.0 version, or is it just that the original patches were made for that version?
Back to top
View user's profile Send private message
ubercow
n00b
n00b


Joined: 17 Mar 2007
Posts: 64

PostPosted: Sun Jun 15, 2008 12:44 am    Post subject: Reply with quote

How do you get the patch's spr working with 32 bit binaries on amd64? Ive replaced all the cairo, Xft, fontconfig and freetype emul-linux libraries with compiled patched ones, but for eg. firefox-bin still shows old spr fonts. Any ideas?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jun 15, 2008 7:49 am    Post subject: Reply with quote

firefox-bin has been compiled to *not* use the system's Cairo, I believe.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Jun 15, 2008 7:56 am    Post subject: Reply with quote

PaulBredbury wrote:
firefox-bin has been compiled to *not* use the system's Cairo, I believe.

When did they change that? It used to work for me when I was using these patches (actually, the original patches from the start of this thread). Granted, it was a while ago though.

EDIT: I can confirm that firefox-bin works fine with these patches on x86. The text is all purrrty now... :D


Last edited by yabbadabbadont on Mon Jun 16, 2008 6:20 am; edited 2 times in total
Back to top
View user's profile Send private message
ubercow
n00b
n00b


Joined: 17 Mar 2007
Posts: 64

PostPosted: Sun Jun 15, 2008 11:26 am    Post subject: Reply with quote

PaulBredbury wrote:
firefox-bin has been compiled to *not* use the system's Cairo, I believe.


I'd like to compile a firefox package in a 32 bit chroot for installing onto amd64. Would this then use the system emul- libraries? I have tried this but I get this problem whenever I try to use the package: https://forums.gentoo.org/viewtopic-t-693080-highlight-.html
Back to top
View user's profile Send private message
bosele
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2005
Posts: 90

PostPosted: Mon Jun 16, 2008 5:25 pm    Post subject: Reply with quote

Quote:

Here it is: http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2


first of all thanks a lot, but what settings do i use for /etc/fonts/local.conf?

I have this atm
Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
  </edit>
</fontconfig>


and it's not looking great, so could you please give an overview of the exact settings needed in order to use the ebuilds in that particular tarball?
Back to top
View user's profile Send private message
ubercow
n00b
n00b


Joined: 17 Mar 2007
Posts: 64

PostPosted: Mon Jun 16, 2008 8:53 pm    Post subject: Reply with quote

yabbadabbadont wrote:
PaulBredbury wrote:
firefox-bin has been compiled to *not* use the system's Cairo, I believe.

When did they change that? It used to work for me when I was using these patches (actually, the original patches from the start of this thread). Granted, it was a while ago though.

EDIT: I can confirm that firefox-bin works fine with these patches on x86. The text is all purrrty now... :D

That's strange how come it doesn't work for an amd64 install? I wish I could get this working, firefox is probably the most important app for text to look nice in!
Also another thing, in KDE some tabs which appear on the left edge of applications have vertical text which doesn't filter very well with the patches and looks blurry and wrong.
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Mon Jun 16, 2008 9:59 pm    Post subject: Reply with quote

bosele wrote:
and it's not looking great, so could you please give an overview of the exact settings needed in order to use the ebuilds in that particular tarball?

And without any local.conf ?
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Mon Jun 16, 2008 10:15 pm    Post subject: Reply with quote

bi3l wrote:
bosele wrote:
and it's not looking great, so could you please give an overview of the exact settings needed in order to use the ebuilds in that particular tarball?

And without any local.conf ?

I have the following in my ~/.fonts.conf (on an x86, not amd64 system)
Code:
/home/daffy $ cat .fonts.conf
<?xml version="1.0"?>

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>
  <match target="font">
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="rgba"      mode="assign"><const>rgb</const></edit>
    <edit name="autohint"  mode="assign"><bool>true</bool></edit>
    <edit name="hinting"   mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
          <!-- lcdnone, lcddefault, lcdlight, lcdlegacy -->
  </match>
  <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>
    <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
  </match>
  <selectfont>
    <rejectfont>
      <pattern>
        <patelt name="scalable"><bool>false</bool></patelt>
      </pattern>
    </rejectfont>
  </selectfont>
</fontconfig>
Back to top
View user's profile Send private message
ubercow
n00b
n00b


Joined: 17 Mar 2007
Posts: 64

PostPosted: Tue Jun 17, 2008 6:47 pm    Post subject: Reply with quote

Never mind, I've moved to Firefox 64 with swfdec, which isn't half bad actually, if a bit high on cpu usage.
Back to top
View user's profile Send private message
Turingtest
n00b
n00b


Joined: 31 Mar 2006
Posts: 44

PostPosted: Wed Jun 18, 2008 5:39 pm    Post subject: Reply with quote

bi3l wrote:
Here it is: http://ogmrip.sourceforge.net/misc/gentoo-lcd-filtering.tar.bz2


Thanks very much for updating these patches.
However, after upgrading freetype, fontconfig and cairo my system starts complaining...
Quote:

Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant used : lcdlegacy

I get the same type of warning if I try to set any of the new lcdfilter constants in /etc/fonts/local.conf. Any idea why this might be? Is anybody else seeing these warnings in ~/.xsession_errors?
Back to top
View user's profile Send private message
Junkyboy
n00b
n00b


Joined: 06 Jul 2002
Posts: 33

PostPosted: Wed Jun 18, 2008 5:56 pm    Post subject: Reply with quote

Yeah, I've been seeing that for quite a while. Other disto's seem to get the error as well. I've tried renaming that field to about 5 variations and none work. I beginning to think that code wont accept any value. :(
Back to top
View user's profile Send private message
briancl
n00b
n00b


Joined: 30 Jun 2007
Posts: 7

PostPosted: Wed Jun 18, 2008 7:02 pm    Post subject: Monospace problems Reply with quote

I just installed all of the latest patches from soor with updated patches from the tarball above. Everything seems to be fine except my monospace fonts are very strange in Firefox. In Konsole, Bitstream Vera Sans Mono looks prefect. In Firefox, the same font looks terrible. See in the screen shot the posting of a code snippet in this forum. That is supposed to be Bitstream Vera Sana Mono, as indicated by the config window in the screen shot, but it definitely doesn't look like it. What can I do to make my Firefox monospace font look like it does in Konsole (and everywhere else)? Any ideas? Thanks.

Screenshot: http://kokshark.techbandits.com/~silent/desktop.png

Package Versions and USE flags
Code:
briancl@twilo ~/Desktop $ emerge -pv cairo libXft fontconfig freetype mozilla-firefox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/freetype-2.3.6  USE="X ubuntu -bindist -debug -doc -utils" 0 kB [1]
[ebuild   R   ] media-libs/fontconfig-2.6.0-r1  USE="ubuntu xml -doc" 0 kB [1]
[ebuild   R   ] x11-libs/libXft-2.1.12  USE="newspr -debug" 0 kB [1]
[ebuild   R   ] x11-libs/cairo-1.6.4  USE="X directfb glitz newspr opengl svg -debug -doc -test -xcb" 0 kB [1]
[ebuild   R   ] www-client/mozilla-firefox-3.0  USE="dbus java xulrunner -bindist -gnome -ipv6 -mozdevelop -restrict-javascript -startup-notification" LINGUAS="en -af -ar -be -ca -cs -da -de -el -en_GB -en_US -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB

Total: 5 packages (5 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/soor


Xft settings
Code:
briancl@twilo ~ $ xrdb -query | grep Xft
Xft.antialias:  1
Xft.dpi:        120
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb


/etc/fonts/local.conf
Code:
briancl@twilo ~ $ cat /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
  </edit>
</fontconfig>


fontconfig config
Code:
briancl@twilo ~ $ eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
  [1]   10-antialias.conf *
  [2]   10-autohint.conf
  [3]   10-hinting.conf *
  [4]   10-hinting-full.conf *
  [5]   10-hinting-medium.conf
  [6]   10-hinting-slight.conf
  [7]   10-no-sub-pixel.conf
  [8]   10-sub-pixel-bgr.conf
  [9]   10-sub-pixel-rgb.conf *
  [10]  10-sub-pixel-vbgr.conf
  [11]  10-sub-pixel-vrgb.conf
  [12]  10-unhinted.conf
  [13]  20-fix-globaladvance.conf *
  [14]  20-unhint-small-vera.conf *
  [15]  25-unhint-nonlatin.conf
  [16]  30-metric-aliases.conf *
  [17]  30-urw-aliases.conf *
  [18]  40-nonlatin.conf *
  [19]  45-latin.conf *
  [20]  49-sansserif.conf *
  [21]  50-user.conf *
  [22]  51-local.conf *
  [23]  53-monospace-lcd-filter.conf *
  [24]  60-latin.conf *
  [25]  65-fonts-persian.conf *
  [26]  65-khmer.conf
  [27]  65-nonlatin.conf *
  [28]  69-unifont.conf *
  [29]  70-no-bitmaps.conf *
  [30]  70-yes-bitmaps.conf
  [31]  80-delicious.conf *
  [32]  90-synthetic.conf *


User settings
Code:
briancl@twilo ~ $ cat ~/.Xresources
Xft.lcdfilter:  lcddefault
briancl@twilo ~ $ cat ~/.fonts.conf
cat: /home/briancl/.fonts.conf: No such file or directory
Back to top
View user's profile Send private message
Turingtest
n00b
n00b


Joined: 31 Mar 2006
Posts: 44

PostPosted: Wed Jun 18, 2008 9:51 pm    Post subject: Reply with quote

Turingtest wrote:
.......
However, after upgrading freetype, fontconfig and cairo my system starts complaining...
Quote:

Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant used : lcdlegacy



Sorry to reply to my own post, but I've figured out that it's just the 32-bit apps on my amd64 multilib system complaining. The 64 bit apps are fine, so I assume it's just that whatever 32 bit library the multilib uses doesn't understand these constants, and so is not a problem with these ebuilds at all. Please ignore the above post.

Also, @briancl, the stylesheet for the gentoo forums specifies courier as the monospace font for code blocks. If you want only bitstream vera to be used untick the "allow pages to use their own fonts" box in the preferences dialog.
Back to top
View user's profile Send private message
briancl
n00b
n00b


Joined: 30 Jun 2007
Posts: 7

PostPosted: Wed Jun 18, 2008 11:31 pm    Post subject: Reply with quote

Turingtest wrote:

Also, @briancl, the stylesheet for the gentoo forums specifies courier as the monospace font for code blocks. If you want only bitstream vera to be used untick the "allow pages to use their own fonts" box in the preferences dialog.


I'd prefer to let websites use their own font, so how do I make the courier font that is used look good? If you look closely at the screenshot, the 3rd and 4th line down in the first code block start with "-W" or "-We" and those particular characters are very poorly rendered compared to the rest of the characters. How do I make this more consistent?
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Jun 19, 2008 12:06 am    Post subject: Reply with quote

briancl wrote:
Turingtest wrote:

Also, @briancl, the stylesheet for the gentoo forums specifies courier as the monospace font for code blocks. If you want only bitstream vera to be used untick the "allow pages to use their own fonts" box in the preferences dialog.


I'd prefer to let websites use their own font, so how do I make the courier font that is used look good? If you look closely at the screenshot, the 3rd and 4th line down in the first code block start with "-W" or "-We" and those particular characters are very poorly rendered compared to the rest of the characters. How do I make this more consistent?

If you don't already, try disabling bit-mapped fonts.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 28, 29, 30  Next
Page 22 of 30

 
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