Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]Freetype subpixel font rendering - lcd monitors Pt 2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Wed Jul 15, 2009 2:19 pm    Post subject: Reply with quote

Okay. I have started with the ebuild for freetype 2.7.0 in ::devnull-testing, you just need to change the patches when they are out, bi3l.

Last edited by ocin on Mon Jul 20, 2009 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sat Jul 18, 2009 6:28 pm    Post subject: Reply with quote

I've ported the patchset from fontconfig 2.6.0. Commited in devnull-testing and lcd-filtering.
Back to top
View user's profile Send private message
mwhitlock
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2006
Posts: 87
Location: New Hampshire, USA

PostPosted: Sat Jul 18, 2009 8:23 pm    Post subject: Reply with quote

bi3l wrote:
I've ported the patchset from fontconfig 2.6.0. Commited in devnull-testing and lcd-filtering.

2.7.0 is working fine for me. Konqueror was crashing when starting after I merged 2.7.0, but after restarting my X session, all is well. Thanks again for all your great work, Bi3l!
Back to top
View user's profile Send private message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Sat Jul 18, 2009 9:59 pm    Post subject: Reply with quote

Thanks, committed to ::devnull
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Sun Jul 19, 2009 1:37 am    Post subject: Reply with quote

ocin wrote:
Thanks, committed to ::devnull


Code:

emerge -puD --newuse world

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

Calculating dependencies - * Digest verification failed:
 * /usr/local/portage/layman/devnull/media-libs/fontconfig/fontconfig-2.7.0.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 4394
 * Expected: 4925
... done!



And what wrong with cairo-1.8.8 and cleartype? Firefox 3.5 hard depend on it, fonts look ugly for me. So I mask it and use old FF and cairo-1.8.6-r1.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jul 19, 2009 8:55 am    Post subject: Reply with quote

Optimus22Prime wrote:
Firefox 3.5 hard depend on it, fonts look ugly for me.

Maybe you have this font bug weirdness.
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Jul 19, 2009 9:00 am    Post subject: Reply with quote

Optimus22Prime wrote:
Calculating dependencies - * Digest verification failed

Fixed
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Mon Jul 20, 2009 5:48 am    Post subject: Reply with quote

PaulBredbury wrote:
Optimus22Prime wrote:
Firefox 3.5 hard depend on it, fonts look ugly for me.

Maybe you have this font bug weirdness.


Thank you. It helped me.
Back to top
View user's profile Send private message
xiber
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 245
Location: Fremont, CA

PostPosted: Wed Jul 22, 2009 1:20 am    Post subject: Reply with quote

Going from 2.6.0 to 2.7.0, what happened to:

10-antialias.conf
10-hinting.conf
10-hinting-full.conf
10-hinting-medium.conf
10-hinting-slight.conf

with the cleartype use flag? Fonts now look horrible.
_________________
Athlon XP-M 2600 @ 2.3 GHz OC | Abit NF7-S r2.0 | 2x512MB PC3200 | 6600GT OC | Audigy 2 | Gentoo | 2005

Athlon 64 X2 4600 @ 2.4 GHz | Asus M2N-SLI DLX | 4x1GB PC6400 | 7600GT KO | 7HD @ 3.1TB | OpenSolaris SXCE | 2007
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Wed Jul 22, 2009 9:46 am    Post subject: Reply with quote

I could achieve identical looking fonts in qt3 qt4 and gtk2 apps only with this settings

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-unhint-small-vera.conf *
  [10]  25-ttf-arphic-ukai-render.conf *
  [11]  25-ttf-arphic-uming-bitmaps.conf *
  [12]  25-ttf-arphic-uming-render.conf *
  [13]  25-unhint-nonlatin.conf *
  [14]  30-metric-aliases.conf *
  [15]  30-urw-aliases.conf *
  [16]  35-ttf-arphic-ukai-aliases.conf *
  [17]  35-ttf-arphic-uming-aliases.conf *
  [18]  40-nonlatin.conf *
  [19]  41-ttf-arphic-ukai.conf *
  [20]  41-ttf-arphic-uming.conf *
  [21]  45-latin.conf *
  [22]  49-sansserif.conf *
  [23]  50-user.conf *
  [24]  51-local.conf *
  [25]  60-latin.conf *
  [26]  64-ttf-arphic-uming.conf *
  [27]  65-fonts-persian.conf *
  [28]  65-khmer.conf *
  [29]  65-nonlatin.conf *
  [30]  69-unifont.conf *
  [31]  70-no-bitmaps.conf
  [32]  70-yes-bitmaps.conf *
  [33]  75-ttf-arphic-ukai-select.conf
  [34]  80-delicious.conf *
  [35]  90-synthetic.conf *
  [36]  90-ttf-arphic-ukai-embolden.conf *
  [37]  90-ttf-arphic-uming-embolden.conf *


and

Code:

cat .fonts.conf
<?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>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


Maybe that help somebody
Back to top
View user's profile Send private message
xiber
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 245
Location: Fremont, CA

PostPosted: Thu Jul 23, 2009 2:24 am    Post subject: Reply with quote

Ok so with fontconfig 2.6.0-r2 +cleartype from devnull I had:
Code:
  [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-dejavu-sans.conf
  [15]  20-unhint-small-dejavu-sans-mono.conf
  [16]  20-unhint-small-dejavu-serif.conf
  [17]  20-unhint-small-vera.conf *
  [18]  25-unhint-nonlatin.conf
  [19]  30-metric-aliases.conf *
  [20]  30-urw-aliases.conf *
  [21]  40-nonlatin.conf *
  [22]  45-latin.conf *
  [23]  49-sansserif.conf *
  [24]  50-user.conf
  [25]  51-local.conf *
  [26]  57-dejavu-sans.conf
  [27]  57-dejavu-sans-mono.conf
  [28]  57-dejavu-serif.conf
  [29]  60-latin.conf *
  [30]  65-fonts-persian.conf *
  [31]  65-khmer.conf
  [32]  65-nonlatin.conf *
  [33]  69-unifont.conf *
  [34]  70-no-bitmaps.conf
  [35]  70-yes-bitmaps.conf
  [36]  80-delicious.conf *
  [37]  90-synthetic.conf *


And I everything looks great (at least to me),

with fontconfig 2.7.0 +cleartype I have:
Code:
  [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-dejavu-sans.conf
  [10]  20-unhint-small-dejavu-sans-mono.conf
  [11]  20-unhint-small-dejavu-serif.conf
  [12]  20-unhint-small-vera.conf *
  [13]  25-unhint-nonlatin.conf
  [14]  30-metric-aliases.conf *
  [15]  30-urw-aliases.conf *
  [16]  40-nonlatin.conf *
  [17]  45-latin.conf *
  [18]  49-sansserif.conf *
  [19]  50-user.conf
  [20]  51-local.conf *
  [21]  57-dejavu-sans.conf
  [22]  57-dejavu-sans-mono.conf
  [23]  57-dejavu-serif.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 *


plus local.conf:

Code:
    <match target="font" >
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <match target="font">
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <match target="font">
        <edit name="hintstyle" mode="assign">
            <const>hintmedium</const>
        </edit>
    </match>


Which essentially ends up being the same config but the results with 2.7.0 are pretty bad compared to 2.6.0.

OK, just looked at the devnull ebuild. With the cleartype use flag enabled, fontconfig-2.7.0 is essentially the same as the stock portage ebuild. Was there a cleartype patch for 2.6.0? Should I try the ubuntu flag? Going back to 2.6.0-r2 for the moment.
_________________
Athlon XP-M 2600 @ 2.3 GHz OC | Abit NF7-S r2.0 | 2x512MB PC3200 | 6600GT OC | Audigy 2 | Gentoo | 2005

Athlon 64 X2 4600 @ 2.4 GHz | Asus M2N-SLI DLX | 4x1GB PC6400 | 7600GT KO | 7HD @ 3.1TB | OpenSolaris SXCE | 2007
Back to top
View user's profile Send private message
CkoTuHa
n00b
n00b


Joined: 27 Mar 2009
Posts: 74

PostPosted: Fri Jul 24, 2009 2:36 pm    Post subject: Reply with quote

I can't get font rendering working like in Windows XP. In firefox 3.5 the google.com start page never look like on windows : the "W" in the Web is always aliased ? or sth.

The characters are never like in XP. I have my fonts from my windows that came with laptop, but seems to me like it is issue with font rendering. Overall, I can't make my gentoo look "professional". It looks like cheap cartoon :(
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Fri Jul 24, 2009 3:19 pm    Post subject: Reply with quote

CkoTuHa wrote:
I can't get font rendering working like in Windows XP. In firefox 3.5 the google.com start page never look like on windows : the "W" in the Web is always aliased ? or sth.

The characters are never like in XP. I have my fonts from my windows that came with laptop, but seems to me like it is issue with font rendering. Overall, I can't make my gentoo look "professional". It looks like cheap cartoon :(


http://i076.radikal.ru/0907/e7/87223445dde7.png

Left - linux, hintlight. Right - Windows XP. Fonts - Times New Roman, Verdana, Courier New. Linux look more clever for me. Now I have only one trouble. With hintlight fonts in qt4 apps look ugly and fat. With hintmedium fonts in qt3, qt4 and gtk2 apps looks consistent.
Back to top
View user's profile Send private message
CkoTuHa
n00b
n00b


Joined: 27 Mar 2009
Posts: 74

PostPosted: Fri Jul 24, 2009 4:19 pm    Post subject: Reply with quote

Optimus22Prime wrote:
CkoTuHa wrote:
I can't get font rendering working like in Windows XP. In firefox 3.5 the google.com start page never look like on windows : the "W" in the Web is always aliased ? or sth.

The characters are never like in XP. I have my fonts from my windows that came with laptop, but seems to me like it is issue with font rendering. Overall, I can't make my gentoo look "professional". It looks like cheap cartoon :(


http://i076.radikal.ru/0907/e7/87223445dde7.png

Left - linux, hintlight. Right - Windows XP. Fonts - Times New Roman, Verdana, Courier New. Linux look more clever for me. Now I have only one trouble. With hintlight fonts in qt4 apps look ugly and fat. With hintmedium fonts in qt3, qt4 and gtk2 apps looks consistent.


on the screenshot, the xml qutation : </match> on XP look better to me. I want to get this kind of rendering from my gentoo environment. Как бы это так сделать :) ?
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Fri Jul 24, 2009 4:54 pm    Post subject: Reply with quote

CkoTuHa wrote:

on the screenshot, the xml qutation : </match> on XP look better to me.
Как бы это так сделать :) ?


Windows disable hinting for this font size. Ok, </match> look better for you in Windows, so you can manually disable hinting in kde or gnome and tune .fonts.conf manually after that.
Back to top
View user's profile Send private message
CkoTuHa
n00b
n00b


Joined: 27 Mar 2009
Posts: 74

PostPosted: Fri Jul 24, 2009 6:03 pm    Post subject: Reply with quote

is there any way at all make fonts look the same as on XP ? or it is impossible, but it is possible to make them similar ?
Back to top
View user's profile Send private message
Optimus22Prime
n00b
n00b


Joined: 03 Apr 2009
Posts: 17

PostPosted: Fri Jul 24, 2009 6:25 pm    Post subject: Reply with quote

CkoTuHa wrote:
is there any way at all make fonts look the same as on XP ? or it is impossible, but it is possible to make them similar ?


I think it is impossible, because Windows use closed source bytecode interpretator, and because some faces (with dirty hints inside) look wrong in Windows. With manual tune hinting for some faces it possible make them similar. I presume that font rendering in Windows not ideal, and fine tuned Linux with good fonts (yes, Microsoft fonts too, Verdana have very good manual designed hints) may look better.
Back to top
View user's profile Send private message
CkoTuHa
n00b
n00b


Joined: 27 Mar 2009
Posts: 74

PostPosted: Fri Jul 24, 2009 7:27 pm    Post subject: Reply with quote

Optimus22Prime wrote:
CkoTuHa wrote:
is there any way at all make fonts look the same as on XP ? or it is impossible, but it is possible to make them similar ?


I think it is impossible, because Windows use closed source bytecode interpretator, and because some faces (with dirty hints inside) look wrong in Windows. With manual tune hinting for some faces it possible make them similar. I presume that font rendering in Windows not ideal, and fine tuned Linux with good fonts (yes, Microsoft fonts too, Verdana have very good manual designed hints) may look better.


if there is way to make my font rendering look like here on opensuse on kde then I would be 2xtimes happier person.

http://en.opensuse.org/Image:Perfect_font_rendering_on_KDE.png

now I am like :cry:
Back to top
View user's profile Send private message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Sat Jul 25, 2009 3:31 pm    Post subject: Reply with quote

"Perfect" is always subjective. The font rendering on that screenshot looks like the one on Win XP w/o cleartype.
Back to top
View user's profile Send private message
CkoTuHa
n00b
n00b


Joined: 27 Mar 2009
Posts: 74

PostPosted: Sat Jul 25, 2009 3:43 pm    Post subject: Reply with quote

Ocin, yes, it looks like Windows XP without MS' "Clear Type". Really that is what I want. The question I have is how to make it on gentoo ? What combination of hinting, AA, and fonts should I really try.

For me there is this information asymmetry where I don't even suspect how to manage this font thing.

if anyone has an idea how to get such rendering, welcome.

PS : that "perfect" shot is not mine, I got it here http://en.opensuse.org/Optimal_Use_of_MS_TrueType_Core_Fonts_for_a_KDE_Desktop_on_SuSE
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sat Jul 25, 2009 3:50 pm    Post subject: Reply with quote

We are not you, hence we can't give you the perfect settings for you. Just use eselect fontconfig list/enable/disable and play with the 10-* and 11-* config files until you find your perfect settings.
Back to top
View user's profile Send private message
natros
n00b
n00b


Joined: 26 Sep 2003
Posts: 70

PostPosted: Tue Aug 04, 2009 2:27 pm    Post subject: Reply with quote

There's a problem with x11-libs/cairo-1.8.6-r1 from devnull
Code:
>>> Emerging (1 of 1) x11-libs/cairo-1.8.6-r1 from devnull
 * cairo-1.8.6.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking cairo-1.8.6.tar.gz to /var/tmp/portage/x11-libs/cairo-1.8.6-r1/work
 * Applying cairo-respect-fontconfig.patch ...                                                                        [ ok ]
 * Applying cairo-1.8.6-status-return-fix.patch ...                                                                   [ ok ]

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage/layman/devnull/x11-libs/cairo/files/cairo-ubuntu-02_no-private-symbol-export.patch
 *   ( cairo-ubuntu-02_no-private-symbol-export.patch )

 *
 * ERROR: x11-libs/cairo-1.8.6-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2875:  Called epatch '/usr/local/portage/layman/devnull/x11-libs/cairo/files/cairo-ubuntu-02_no-private-symbol-export.patch'
 *             environment, line 1453:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *  The die message:
 *   Cannot find $EPATCH_SOURCE!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-libs/cairo-1.8.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/cairo-1.8.6-r1/temp/environment'.
 * This ebuild is from an overlay named 'devnull': '/usr/local/portage/layman/devnull/'
 *


You just needs to make theses changes:
Code:
--- cairo-1.8.6-r1.ebuild.orig   2009-08-04 13:44:54.029451994 +0100
+++ cairo-1.8.6-r1.ebuild   2009-08-04 13:47:52.009326448 +0100
@@ -83,10 +83,10 @@
       # ClearType-like patches applied by ArchLinux
       epatch "${FILESDIR}"/${PN}-1.2.4-lcd-cleartype-like.diff
    elif use ubuntu; then
-      epatch "${FILESDIR}"/${PN}-ubuntu-02_no-private-symbol-export.patch
+      epatch "${FILESDIR}"/${PN}-ubuntu-02_no_private_symbol_export.patch
       epatch "${FILESDIR}"/${PN}-ubuntu-03_only_destroy_FT_Faces_created_by_cairo.patch
       epatch "${FILESDIR}"/${PN}-ubuntu-04_lcd_filter.patch
-      epatch "${FILESDIR}"/${PN}-ubuntu-06_Xlib-Xcb-Hand-off-EXTEND_PAD-to-XRender.patch
+      epatch "${FILESDIR}"/${PN}-ubuntu-06_Xlib_Xcb_Hand_off_EXTEND_PAD_to_XRender.patch
    fi
 
    # We need to run elibtoolize to ensure correct so versioning on FreeBSD


Thank you for your good work.
_________________
-=[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
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Tue Aug 04, 2009 4:23 pm    Post subject: Reply with quote

Thanks, fixed: http://hg.core.ws/devnull/rev/e763710213f1
Back to top
View user's profile Send private message
pmp11y
n00b
n00b


Joined: 27 Jun 2008
Posts: 4

PostPosted: Tue Aug 11, 2009 4:10 am    Post subject: Reply with quote

devnull don't work

Code:
* Failed to sync overlay "devnull".
* Error was: Syncing overlay "devnull" returned status 65280!
Back to top
View user's profile Send private message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Tue Aug 11, 2009 11:24 am    Post subject: Reply with quote

Edit: The server is back online!
Sorry for the circumstances.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 27, 28, 29  Next
Page 9 of 29

 
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