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 ... 12, 13, 14 ... 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
cvig
n00b
n00b


Joined: 04 Sep 2004
Posts: 13

PostPosted: Wed Dec 05, 2007 7:30 pm    Post subject: Reply with quote

boniek wrote:
Use freetype from portage tree - it's patched already.

Thank you. I still can't get over how easier it is to read well rendered fonts.
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Sat Dec 15, 2007 3:31 pm    Post subject: Reply with quote

I thought I had seen something about qt4 apps in this thread and the newer freetype, I am having a problem with a qt4 app named servant, after updating freetype, servants fonts look horrible.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Sun Dec 16, 2007 5:54 pm    Post subject: Reply with quote

Also, will there be a cairo update in xeffects? There are two newer versions in portage currently.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sun Dec 16, 2007 9:26 pm    Post subject: Reply with quote

There is tarball with newer version of cairo on previous page. I don't know about XEffects as I don't have commit rights to tree anymore. I'm not user of qt4 so I can't help you with your problem.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Mon Dec 17, 2007 6:06 am    Post subject: Reply with quote

I heard something about pdf rendering problems with the newer cairo version, any truth to that?
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 167
Location: Kraków, Poland

PostPosted: Mon Dec 17, 2007 6:34 am    Post subject: Reply with quote

I compiled cairo using ebuild from boniek on previous page. No problems with pdf.
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
punkid
Apprentice
Apprentice


Joined: 18 Dec 2004
Posts: 215
Location: offline

PostPosted: Thu Dec 20, 2007 3:14 pm    Post subject: Reply with quote

The newer cairo with newspr patch has been commited into gentoo-china overlay
I'm emerging it right now :)
_________________
My Blog | Latest Screenshot
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Thu Dec 20, 2007 11:08 pm    Post subject: Reply with quote

For all this to work you will need patched cairo AND patched libXft. hopefully gentoo-china got both :)
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
punkid
Apprentice
Apprentice


Joined: 18 Dec 2004
Posts: 215
Location: offline

PostPosted: Fri Dec 21, 2007 4:11 am    Post subject: Reply with quote

boniek wrote:
For all this to work you will need patched cairo AND patched libXft. hopefully gentoo-china got both :)

Still needs xeffects overlay to get the patched libXft, gentoo-china doesnt have it by far :(
_________________
My Blog | Latest Screenshot
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Sun Dec 23, 2007 4:49 pm    Post subject: Reply with quote

Could someone with fonts working well please compare this and let me know what if anything is different on their system

eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
[1] 10-autohint.conf *
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf *
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-unhint-small-vera.conf *
[10] 25-unhint-nonlatin.conf
[11] 30-metric-aliases.conf *
[12] 30-urw-aliases.conf *
[13] 40-nonlatin.conf *
[14] 45-latin.conf *
[15] 49-sansserif.conf *
[16] 50-user.conf *
[17] 51-local.conf *
[18] 60-latin.conf *
[19] 60-liberation.conf *
[20] 65-fonts-persian.conf *
[21] 65-nonlatin.conf *
[22] 69-unifont.conf *
[23] 70-no-bitmaps.conf
[24] 70-yes-bitmaps.conf *
[25] 80-delicious.conf *
[26] 90-synthetic.conf *
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sun Dec 23, 2007 9:22 pm    Post subject: Reply with quote

Code:
> eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-sub-pixel-bgr.conf
  [4]   10-sub-pixel-rgb.conf
  [5]   10-sub-pixel-vbgr.conf
  [6]   10-sub-pixel-vrgb.conf
  [7]   10-unhinted.conf
  [8]   20-fix-globaladvance.conf *
  [9]   20-lohit-gujarati.conf
  [10]  20-unhint-small-dejavu.conf
  [11]  20-unhint-small-dejavu-experimental.conf
  [12]  20-unhint-small-vera.conf *
  [13]  25-unhint-nonlatin.conf
  [14]  30-amt-aliases.conf
  [15]  30-metric-aliases.conf *
  [16]  30-urw-aliases.conf *
  [17]  40-generic.conf
  [18]  40-nonlatin.conf *
  [19]  45-latin.conf *
  [20]  49-sansserif.conf *
  [21]  50-user.conf *
  [22]  51-local.conf *
  [23]  57-dejavu.conf
  [24]  59-dejavu.conf
  [25]  60-latin.conf *
  [26]  60-liberation.conf
  [27]  61-dejavu-experimental.conf
  [28]  65-fonts-persian.conf *
  [29]  65-nonlatin.conf *
  [30]  69-unifont.conf *
  [31]  70-no-bitmaps.conf
  [32]  70-yes-bitmaps.conf
  [33]  80-delicious.conf *
  [34]  90-synthetic.conf *

BTW I'm Gnome user.
_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Sun Dec 23, 2007 10:25 pm    Post subject: Reply with quote

I have made a couple of changes overall. After changing all my kde fonts to verdana 13 with the exception of fixed width which is set to Dejavu sans mono 13, I set firefox and konqueror both to use verdana. Then my final eselect fontconfig was this

Available fontconfig .conf files ( * is enabled ):
[1] 10-autohint.conf *
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf *
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-unhint-small-vera.conf *
[10] 25-unhint-nonlatin.conf
[11] 30-metric-aliases.conf *
[12] 30-urw-aliases.conf *
[13] 40-nonlatin.conf *
[14] 45-latin.conf *
[15] 49-sansserif.conf *
[16] 50-user.conf *
[17] 51-local.conf *
[18] 60-latin.conf *
[19] 60-liberation.conf *
[20] 65-fonts-persian.conf *
[21] 65-nonlatin.conf *
[22] 69-unifont.conf *
[23] 70-no-bitmaps.conf
[24] 70-yes-bitmaps.conf *
[25] 80-delicious.conf *
[26] 90-synthetic.conf *




and my .fonts.conf was left at


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="autohint">
<bool>true</bool>
</edit>
</match>
</fontconfig>




This setup gives me reasonably good font rendering. Still qt4 apps don't render real well but what can I say. I'm not sure there is a real solution.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
bluesurfer
n00b
n00b


Joined: 19 Sep 2005
Posts: 18
Location: Regensburg, Germany

PostPosted: Thu Dec 27, 2007 10:42 pm    Post subject: Reply with quote

I use the cairo-1.4.12 ebuild from gentoo-china and libXft-2.1.12 from xeffects overlay. Looks great!
What about the quantization patch for freetype - why do I not need it?

BTW I think the ubuntu guys have already implemeted the patches in gutsy according to this:
http://wiki.ubuntuusers.de/Schriftbild_verbessern
http://ubuntuforums.org/showthread.php?t=555964
_________________
"cat /boot/vmlinuz > /dev/dsp" and god speaks to you
Back to top
View user's profile Send private message
natros
n00b
n00b


Joined: 26 Sep 2003
Posts: 70

PostPosted: Sat Dec 29, 2007 10:51 am    Post subject: Reply with quote

bluesurfer wrote:
I use the cairo-1.4.12 ebuild from gentoo-china and libXft-2.1.12 from xeffects overlay. Looks great!
What about the quantization patch for freetype - why do I not need it?

BTW I think the ubuntu guys have already implemeted the patches in gutsy according to this:
http://wiki.ubuntuusers.de/Schriftbild_verbessern
http://ubuntuforums.org/showthread.php?t=555964

That's true.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Dec 29, 2007 3:34 pm    Post subject: Reply with quote

Hooray, Ubuntu's patches look great 8)

Better than xeffects, I think.
Back to top
View user's profile Send private message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Sat Dec 29, 2007 9:33 pm    Post subject: Reply with quote

billydv wrote:
I thought I had seen something about qt4 apps in this thread and the newer freetype, I am having a problem with a qt4 app named servant, after updating freetype, servants fonts look horrible.


I saw the same problem. Try running qtconfig, and change your default fonts.
Back to top
View user's profile Send private message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Sat Dec 29, 2007 9:42 pm    Post subject: Reply with quote

punkid wrote:
The newer cairo with newspr patch has been commited into gentoo-china overlay
I'm emerging it right now :)


A few posts to this thread in October claimed that the xeffects project is still alive, but the overlay is not being updated to keep pace with portage. Now people are using gentoo-china instead of xeffects to provide the ebuilds? Is somebody actively maintaining the xeffects overlay?
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 885
Location: Mount Vernon, NY

PostPosted: Sun Dec 30, 2007 1:56 am    Post subject: Reply with quote

That did it, changed my font to verdana in qtconfig and now it shows up beautiful.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sun Dec 30, 2007 11:33 am    Post subject: Reply with quote

PaulBredbury wrote:
Hooray, Ubuntu's patches look great 8)

Better than xeffects, I think.


This might make it into gentoo's main tree as well then I guess, since ubuntu is quite paranoid about license problems and stuff like that there shouldn't be any problems with those patches.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1293
Location: Netherlands

PostPosted: Sun Dec 30, 2007 1:40 pm    Post subject: Reply with quote

Hmm - are there already ebuilds available to test this stuff? Or do I need to patch it manually?

Since xeffects seems to be unmaintained I have to look for another solution to keep those great looking fonts :-/

Greetz
swimmer
Back to top
View user's profile Send private message
elkhunter
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2004
Posts: 102

PostPosted: Mon Dec 31, 2007 12:56 am    Post subject: Reply with quote

Is this howto still accurate? Should I emerge xeffects or gentoo-china and what USE flags are needed (I saw posts indicating to use newspr and one indicated to use filter_* instead). Also, what should I put in /etc/fonts/local.conf and in ~/.fonts.conf and what fontconfig scripts do I want enabled for an LCD (RGB) monitor? Any help appreciated.
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Tue Jan 01, 2008 10:36 am    Post subject: Reply with quote

elkhunter wrote:
Is this howto still accurate? Should I emerge xeffects or gentoo-china and what USE flags are needed (I saw posts indicating to use newspr and one indicated to use filter_* instead). Also, what should I put in /etc/fonts/local.conf and in ~/.fonts.conf and what fontconfig scripts do I want enabled for an LCD (RGB) monitor? Any help appreciated.

I had to pull both xeffects and gentoo-china in order to get patched libXft-2.1.12 and cairo-1.4.12, respectively. I used Layman to get the xeffects overlay, but gentoo-china isn't listed in it, so I had to check that one out manually.

Additionally, because xeffects doesn't have kdelibs-3.5.8-r2 yet (c'mon guys!), I had to make my own:
Code:
# cp /usr/portage/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild /usr/local/portage/layman/xeffects/kde-base/kdelibs/
# diff -u /usr/portage/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild \
        /usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild |
        patch /usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild
# ebuild /usr/local/portage/layman/xeffects/kde-base/kdelibs/kdelibs-3.5.8-r2.ebuild manifest

Here's my ~/.fonts.conf, with commentary:
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

 <!-- Enable sub-pixel anti-aliasing -->
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>

 <!-- Disable hinting (I like Mac-ish fonts) -->
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>false</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintnone</const>
  </edit>
 </match>

 <!-- Ban bitmap fonts (yuck!) -->
 <include>/etc/fonts/conf.avail/70-no-bitmaps.conf</include>

 <!-- Enable hinting for DejaVu Sans Mono, my terminal font -->
 <match target="font">
  <test name="family">
   <string>DejaVu Sans Mono</string>
  </test>
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
   <const>hintfull</const>
  </edit>
 </match>

 <!-- Ban Type-1 fonts because they render poorly -->
 <selectfont>
  <rejectfont>
   <pattern>
    <patelt name="fontformat" >
     <string>Type 1</string>
    </patelt>
   </pattern>
  </rejectfont>
 </selectfont>

</fontconfig>
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 75
Location: Weare, NH

PostPosted: Tue Jan 01, 2008 11:32 am    Post subject: Screen shot Reply with quote

I have to say, my fonts look really freakin' good now, IMHO.

Screen shot:
http://img146.imageshack.us/img146/1892/screenshotvf2.png

In looking through this thread, I see a lot of posts saying that bold fonts are "too bold." Could someone comment on my screen shot? Bold fonts look totally correct to me. (For example, look at the selected window button in the Kicker.)

Incidentally, to clear up the apparent confusion out there:
  • fontconfig : merely selects a font file according to some given attributes; does no rasterization or rendering!
  • freetype : rasterizes vector font glyphs into bitmaps; does no LCD filtering!
  • libXft : renders glyph bitmaps on an X display; performs LCD filtering
  • cairo : renders vector graphics and FreeType-rasterized text; also performs LCD filtering
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Jan 01, 2008 12:00 pm    Post subject: Reply with quote

fontconfig-ubuntu is required, to compile cairo-ubuntu. Otherwise:
Code:
cairo-xlib-screen.c:191: error: 'FC_LCD_FILTER_DEFAULT' undeclared
cairo-xlib-screen.c:234: error: 'FC_LCD_FILTER_NONE' undeclared
cairo-xlib-screen.c:237: error: 'FC_LCD_FILTER_LIGHT' undeclared
cairo-xlib-screen.c:240: error: 'FC_LCD_FILTER_LEGACY' undeclared
Back to top
View user's profile Send private message
bluesurfer
n00b
n00b


Joined: 19 Sep 2005
Posts: 18
Location: Regensburg, Germany

PostPosted: Tue Jan 01, 2008 1:45 pm    Post subject: Reply with quote

mwhitlock wrote:
I had to pull both xeffects and gentoo-china in order to get patched libXft-2.1.12 and cairo-1.4.12, respectively. I used Layman to get the xeffects overlay, but gentoo-china isn't listed in it, so I had to check that one out manually.

Strange. gentoo-china is in layman on my system.

mwhitlock wrote:
Additionally, because xeffects doesn't have kdelibs-3.5.8-r2 yet (c'mon guys!), I had to make my own:

Why do you want kdelibs from xeffects? There's no need to if you just want to have better rendered fonts.
_________________
"cat /boot/vmlinuz > /dev/dsp" and god speaks to you
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 ... 12, 13, 14 ... 28, 29, 30  Next
Page 13 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