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 ... 21, 22, 23 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Infinality
n00b
n00b


Joined: 12 Aug 2010
Posts: 24
Location: Wisconsin, USA

PostPosted: Sat Dec 24, 2011 4:50 am    Post subject: New Release Reply with quote

This release should fix some (hopefully ALL) of the crashers from the last release.

http://www.infinality.net/blog/infinality-freetype-patches/
Back to top
View user's profile Send private message
illuminated
n00b
n00b


Joined: 28 Dec 2010
Posts: 48

PostPosted: Sun Dec 25, 2011 4:17 pm    Post subject: Reply with quote

When I try to re-emerge freetype, I get the following error http://pastebin.com/Me2iRr27 :\
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Mon Dec 26, 2011 10:29 am    Post subject: Reply with quote

illuminated wrote:
When I try to re-emerge freetype, I get the following error http://pastebin.com/Me2iRr27 :\

Fixed.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1310
Location: Netherlands

PostPosted: Mon Dec 26, 2011 2:25 pm    Post subject: Reply with quote

bi3l wrote:
Fixed.

Thank you very much for your fantastic work!

May I ask you whether you have any plans to implement the new fontconfig
structure as Infinality introduced it with the new release from 23-12-2011?

Kindly yours
swimmer
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Mon Dec 26, 2011 4:31 pm    Post subject: Reply with quote

[quote="swimmer"]
bi3l wrote:
May I ask you whether you have any plans to implement the new fontconfig
structure as Infinality introduced it with the new release from 23-12-2011?

Yes, but I have to analyze what infinality did.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1310
Location: Netherlands

PostPosted: Mon Dec 26, 2011 4:36 pm    Post subject: Reply with quote

bi3l wrote:
Yes, but I have to analyze what infinality did.

Good to hear :) And please don't feel any pressure and take your time to
analyze that beast ... ;-)
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Fri Jan 13, 2012 3:18 pm    Post subject: Reply with quote

Did anyone noticed that small fonts are unreadable small? For example size 8 is uber small but something about 12 is smaller than 11, after reverting the patches everything is all right. Openbox's menu and qt4 apps was unreadable.
_________________
BitBucket -- better-initramfs
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Thu Feb 09, 2012 5:24 pm    Post subject: Reply with quote

Ay there!
Just wanted to ask when we could expect patched cairo-1.10.2-r2 in overlay?
cairo-1.10.2-r1 is blocking qt-4.8 update due to some important patches being added in r2 rev.

Thanks for great job.
Back to top
View user's profile Send private message
Helmering
n00b
n00b


Joined: 13 Dec 2011
Posts: 57
Location: Italy

PostPosted: Fri Feb 10, 2012 4:21 pm    Post subject: Reply with quote

^marcs wrote:
Ay there!
cairo-1.10.2-r1 is blocking qt-4.8 update due to some important patches being added in r2 rev.


The only difference beetween r1 and r2 is the qt-surface patch.

here's the patch for the ebuild:

Code:
77a78
>       epatch "${FILESDIR}"/${P}-qt-surface.patch


The "cairo-1.10.2-qt-surface.patch" has to be copied into the files directory of the lcdfilter overlay

Is working fine here

bye, Ralf
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Fri Feb 10, 2012 5:36 pm    Post subject: Reply with quote

Thanks for the tip!
Back to top
View user's profile Send private message
zhou13
n00b
n00b


Joined: 18 Nov 2010
Posts: 22

PostPosted: Sat Feb 11, 2012 2:06 pm    Post subject: Reply with quote

Could you make an upgrade to r2 please? The overlay is out of date.
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sat Feb 11, 2012 7:20 pm    Post subject: Reply with quote

zhou13 wrote:
Could you make an upgrade to r2 please? The overlay is out of date.

Done.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
Ld.dD
n00b
n00b


Joined: 18 Feb 2012
Posts: 3

PostPosted: Sun Feb 19, 2012 1:18 am    Post subject: Reply with quote

Among all font rendering I've seen on Linux so far I like what's Ubuntu doing the most. I'm trying to match that in Gentoo, without success.

My settings:
overlay set up according to wiki http://gitorious.org/lcd-filtering
usage: source ft-settings.sh ubuntu (but tried most of the others as well)
# eselect fontconfig list
[1] 10-antialias.conf *
[2] 10-autohint.conf * (tried disabling as well)
[3] 10-hinting-full.conf (tried as well)
[4] 10-hinting-medium.conf *
[5] 10-hinting-slight.conf (tried as well)
[6] 10-hinting.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] 11-lcd-filter-lcddefault.conf *
[14] 20-fix-globaladvance.conf *
[15] 20-hinting-small-fonts-slight.conf *
[16] 20-unhint-small-dejavu-sans-mono.conf
[17] 20-unhint-small-dejavu-sans.conf
[18] 20-unhint-small-dejavu-serif.conf
[19] 20-unhint-small-vera.conf *
[20] 21-hinting-small-aquabase-slight.conf *
[21] 21-hinting-small-arial-black-slight.conf
[22] 21-hinting-small-browallia-slight.conf *
[23] 22-hinting-courier-italic-slight.conf *
[24] 25-hinting-non-tt-instructed-slight.conf
[25] 25-hinting-tt-instructed-full.conf
[26] 25-hinting-tt-instructed-none.conf
[27] 25-hinting-tt-instructed-slight.conf
[28] 25-unhint-nonlatin.conf
[29] 30-metric-aliases.conf *
[30] 30-urw-aliases.conf *
[31] 40-nonlatin.conf *
[32] 45-latin.conf *
[33] 49-sansserif.conf *
[34] 50-user.conf *
[35] 51-local.conf *
[36] 53-monospace-lcd-filter.conf *
[37] 57-dejavu-sans-mono.conf *
[38] 57-dejavu-sans.conf *
[39] 57-dejavu-serif.conf *
[40] 60-latin.conf *
[41] 60-liberation.conf
[42] 65-fonts-persian.conf *
[43] 65-khmer.conf
[44] 65-nonlatin.conf *
[45] 69-unifont.conf *
[46] 70-no-bitmaps.conf *
[47] 70-yes-bitmaps.conf
[48] 80-delicious.conf *
[49] 90-embolden.conf (tried as well)
[50] 90-synthetic.conf

Screenshots:
http://imgur.com/a/sApjC

Ubuntu: vanilla
"default": Gentoo without patches, dejavu, PaulBredbury's "old" ~/.font.config from the forum (lost the link)
"infernality": above settings, dejavu and ubuntu font

The default "looks" close but subpixel rendering is quite different from ubuntu (and the result worse, imo). Inifinality is bolder and blurrier but close up subpixel rendering appears to be the same in principle. Changing the profile to default, osx or inifinality didn't help with that. "windows" is thinner, but jagged.

Is there a way to get exactly the same rendering (or better of course;) as in Ubuntu? In case I just had to change config files, I think those should be part of the default settings because well, ubuntu is supposed to look like ubuntu, right?

Another question:
Several patches that used to be required have been upstreamed. Apart from config files, what patches do I need if I just want to copy the Ubuntu rendering but don't want Infinality? Does the overlay even support that and contain all the necessary patches or are we all supposed to use infinality?

There's libXft-2.2.0-ubuntu.patch and cairo-1.10.2-ubuntu.patch but they are only required if apps depend on cairo and libXft
fontconfig-2.8.0-ubuntu.patch is only config related.
http://gitorious.org/lcd-filtering/lcd-filtering/trees/master/media-libs/freetype/files doesn't contain anything obviously coming from Ubuntu. Does that mean for non cairo apps Gentoo already uses the same rendering as Ubuntu and the only difference is configuration?

Edit:
I replaced the whole /etc/fonts with the content of an Ubuntu installation. That did not take care of the bolder ubuntu font. I only conclude it's not "just edit your .fontsconfig".

Another screenshot, Firefox chrome, very subtle except for some characters like the "w". http://imgur.com/a/FxbTK (upper one is gentoo, click to zoom)
So close, but not perfect :(
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Mon Feb 20, 2012 7:59 pm    Post subject: Reply with quote

Infinality's patches are the world saver, but still ubuntu's sharpness and perfect shapes beats it :( - I tried to get ubuntu font settings into gentoo too - no luck tho.

Have You tried sourcing /usr/lib64/ft-settings.sh with ubuntu parameter? Maybe that will get You somewhat closer.
Back to top
View user's profile Send private message
Ld.dD
n00b
n00b


Joined: 18 Feb 2012
Posts: 3

PostPosted: Mon Feb 20, 2012 8:29 pm    Post subject: Reply with quote

^marcs wrote:

Have You tried sourcing /usr/lib64/ft-settings.sh with ubuntu parameter? Maybe that will get You somewhat closer.

I did, see "my settings" in the post above, in my case it's /usr/lib/ft-settings. Their wiki should probably mention that you most likely need the full path.
Back to top
View user's profile Send private message
duderonomy
Guru
Guru


Joined: 20 Mar 2004
Posts: 349
Location: SF Bay Area

PostPosted: Wed Feb 22, 2012 3:41 am    Post subject: Reply with quote

Wow this is a long thread...

Many thanks to PaulBredbury (and others too).
It's been 1 year, 5 months, 8 days since this (apparently) very useful summary:
https://forums.gentoo.org/viewtopic-p-6422790.html#6422790
Is it still considered relevant or is it obsolete by now?

Also... for purpose of improving font rendering in firefox:
Is compiling firefox with --enable-system-cairo relevant in Feb 2012?
If so, what is best way to do it?
I tried modifying the ebuild and then running
`ebuild firefox-10.0.1.ebuild manifest`
to satsify the integrity check for firefox-10.0.1 ebuild, but then had to wait forever.
It took a very long time as it appeared to have download the source for every
firefox ebuild in the /usr/portage/www-client/firefox directory.
(I would like to avoid that next time)
Can I update a single ebuild's integrity check more quickly (next time) or was this the only way?

Thank you!!!
:D
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Feb 22, 2012 8:35 am    Post subject: Reply with quote

duderonomy wrote:
Is it still considered relevant

Yes - it's what I still do.

Also with /etc/profile.d/infinality-settings.sh (or whatever dir Gentoo uses)
Quote:
Is compiling firefox with --enable-system-cairo relevant

Yes, still needed.
Back to top
View user's profile Send private message
Odysseus
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 250
Location: Miami, FL. I miss San Francisco!!!

PostPosted: Sun Mar 11, 2012 2:31 am    Post subject: Reply with quote

The LCD-filtering overlay needs updating.

The current versions for media-libs/freetype-2.4.9 and x11-libs/libXft-2.3.0-r1 now in ~ arches.

TIA

Ciao
Back to top
View user's profile Send private message
Helmering
n00b
n00b


Joined: 13 Dec 2011
Posts: 57
Location: Italy

PostPosted: Sun Mar 18, 2012 6:19 pm    Post subject: Reply with quote

Odysseus wrote:
The LCD-filtering overlay needs updating.

The current versions for media-libs/freetype-2.4.9 and x11-libs/libXft-2.3.0-r1 now in ~ arches.

TIA

Ciao


We have to wait a bit
http://www.infinality.net/forum/viewtopic.php?f=2&t=204#p1372

Ralf
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Mar 18, 2012 6:28 pm    Post subject: Reply with quote

Freetype 2.4.9 seems buggy anyway.
Back to top
View user's profile Send private message
Spinmc
n00b
n00b


Joined: 06 Sep 2010
Posts: 39
Location: Ruvo di Puglia (BA) Italy

PostPosted: Wed Apr 04, 2012 10:09 am    Post subject: Reply with quote

Infinality patchset for freetype-2.4-9 has been released yesterday!
http://www.infinality.net/blog/infinality-freetype-patches/
_________________
Excuse me for my English, I'm working on it! :-)

Proud Gentoo donor. Help Gentoo making a donation so do you.

My italian-language blog: http://www.paba-blog.it ;)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 05, 2012 12:20 am    Post subject: Updates Reply with quote

Freetype
For freetype 2.4.9, here's Infinality's RPM (from dir).

Apply all its patches, except maybe -more-demos and -multilib. Happily, it includes 2.4.9 bugfixes.

infinality-settings.sh in the RPM has some new options:
Code:
# Experimental emboldening values for OSX mode
export INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0
export INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0
export INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0
export INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0


libXft
There's also a new libXft RPM, but it's just a rebuild - no code changes.

Cairo
With cairo 1.12.0, no Ubuntu patches are required (none are available for 1.12.0 yet anyway). Still apply cairo-respect-fontconfig.patch and cairo-1.10.0-buggy_gradients.patch

Edit: Arch has a git-fixes patch.

Compile cairo with: --disable-static --disable-xlib-xcb --enable-tee

--disable-xlib-xcb prevents usage of the poor xcb, apparently.

cairo-1.10.2-qt-surface.patch doesn't seem to be needed.

Fontconfig
Before touching fontconfig 2.9.0, I'll wait for Ubuntu to produce patches for it.

Pango
Pango 1.30.0 needs glib 2.32.0 rather than 2.30.3, so personally I'll ignore it for now.

Are we done yet?
As a reminder, the compilation order is:
freetype2 fontconfig libXft cairo pango
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Sun Apr 08, 2012 1:00 pm    Post subject: Reply with quote

I use this howto http://gitorious.org/lcd-filtering/pages

Everything is fine and look beautiful, except for Chromium browser.
I have the feeling that Chromium do not take into account lcdfilter settings. While with Firefox everything is ok.

Is someone here has the same problem as me ?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 08, 2012 1:37 pm    Post subject: Reply with quote

Who wrote http://gitorious.org/lcd-filtering/pages/Install ?

The compilation order is wrong. Should be:

Code:
emerge -uNav freetype fontconfig cairo libXft

Since fontconfig's configure contains "You must have freetype installed".
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Sun Apr 08, 2012 1:57 pm    Post subject: Reply with quote

PaulBredbury wrote:
Who wrote http://gitorious.org/lcd-filtering/pages/Install ?

The compilation order is wrong. Should be:

Code:
emerge -uNav freetype fontconfig cairo libXft

Since fontconfig's configure contains "You must have freetype installed".


Thank you PaulBredbury.

I re-emerge the packages with the order you advise, but I don't see any difference.

Here a picture to compare what I have with Firefox vs. Chromium:
http://img834.imageshack.us/img834/268/fontsfirefoxvschromium.png
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 ... 21, 22, 23 ... 27, 28, 29  Next
Page 22 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