View previous topic :: View next topic |
Author |
Message |
gkmac Guru
Joined: 19 Jan 2003 Posts: 333 Location: West Sussex, UK
|
Posted: Sun Apr 08, 2012 9:29 pm Post subject: |
|
|
jcTux wrote: | Everything is fine and look beautiful, except for Chromium browser.
I have the feeling that Chromium do not take into account lcdfilter settings. |
Unfortunately, that is correct. _________________ 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 |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Mon Apr 09, 2012 9:45 am Post subject: |
|
|
Me.
PaulBredbury wrote: | The compilation order is wrong. Should be:
Code: | emerge -uNav freetype fontconfig cairo libXft |
Since fontconfig's configure contains "You must have freetype installed". |
As long as the dependancies are correctly defined in the ebuilds and there is no static linking, the order is meaningless. _________________ OGMRip - LCD filtering (Wiki) |
|
Back to top |
|
|
jcTux Apprentice
Joined: 29 Dec 2009 Posts: 276 Location: Tours, France
|
Posted: Mon Apr 09, 2012 11:07 am Post subject: |
|
|
gkmac wrote: | jcTux wrote: | Everything is fine and look beautiful, except for Chromium browser.
I have the feeling that Chromium do not take into account lcdfilter settings. |
Unfortunately, that is correct. |
I upgrade from the stable version (18.0.1025.151) in portage to the unstable and masked version (19.0.1084.1) --> the improvements are very visible. |
|
Back to top |
|
|
Helmering n00b
Joined: 13 Dec 2011 Posts: 63 Location: Italy
|
Posted: Tue Apr 10, 2012 10:40 am Post subject: |
|
|
Hi Paul
That's already the second time you complain incorrectly about this:
https://forums.gentoo.org/viewtopic-p-6425056-highlight-order.html#6425056
And thanx Bi3l and his great "lcd-filtering" overlay users like me get easily the infinalty patches and something more into their systems.
Cheers, Ralf
Last edited by Helmering on Wed Apr 11, 2012 7:57 pm; edited 1 time in total |
|
Back to top |
|
|
r0shi n00b
Joined: 20 Jul 2004 Posts: 62
|
Posted: Wed Apr 11, 2012 1:21 am Post subject: |
|
|
For some reason I'm getting this error when I try to run
emerge -uNav fontconfig freetype cairo libXft
Is there a way to fix this?
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
x11-libs/libXft:0
(x11-libs/libXft-2.2.0::lcd-filtering, ebuild scheduled for merge) pulled in by
x11-libs/libXft[lcdfilter=,cleartype=] required by (x11-libs/cairo-1.10.2-r2::lcd-filtering, ebuild scheduled for merge)
(x11-libs/libXft-2.3.0-r1::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)
media-libs/freetype:2
(media-libs/freetype-2.4.9-r1::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)
(media-libs/freetype-2.4.8::lcd-filtering, ebuild scheduled for merge) pulled in by
media-libs/freetype:2[lcdfilter=] required by (x11-libs/cairo-1.10.2-r2::lcd-filtering, ebuild scheduled for merge)
media-libs/freetype[lcdfilter=] required by (x11-libs/libXft-2.2.0::lcd-filtering, ebuild scheduled for merge) |
|
Back to top |
|
|
Helmering n00b
Joined: 13 Dec 2011 Posts: 63 Location: Italy
|
Posted: Wed Apr 11, 2012 1:33 pm Post subject: |
|
|
r0shi wrote: | For some reason I'm getting this error when I try to run
emerge -uNav fontconfig freetype cairo libXft
Is there a way to fix this?
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict: |
There is at the moment a more recent and stable version of freetype in portage. This is causing the mismatch.
lcd-filtering overlay will downgrade freetype.
Either:
- Wait until lcd-filtering overlay is updated. (Bi3l is normally advising the availability in this forum)
- Put >media-libs/freetype-2.4.8 temporary in your package.mask file
- Try Code: | emerge -1av fontconfig::lcd-filtering freetype::lcd-filtering cairo::lcd-filtering libXft::lcd-filtering |
Cheers |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Wed Apr 11, 2012 7:46 pm Post subject: |
|
|
Added ebuilds and patchsets for freetype 2.4.9-r1 and libXft 2.3.0-r1. _________________ OGMRip - LCD filtering (Wiki) |
|
Back to top |
|
|
EatMeerkats Apprentice
Joined: 15 Mar 2006 Posts: 234
|
Posted: Wed Apr 11, 2012 9:02 pm Post subject: |
|
|
bi3l wrote: | Added ebuilds and patchsets for freetype 2.4.9-r1 and libXft 2.3.0-r1. |
Thanks! There seems to be a bug in the ebuild that prevents /usr/lib64/ft-settings.sh from getting installed. Portage (2.1.10.49) complains about the following:
Code: | * QA Notice: command not found:
*
* /var/tmp/portage/media-libs/freetype-2.4.9-r1/temp/environment: line 2838: newinst: command not found |
|
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
|
Back to top |
|
|
EatMeerkats Apprentice
Joined: 15 Mar 2006 Posts: 234
|
Posted: Wed Apr 11, 2012 9:24 pm Post subject: |
|
|
bi3l wrote: | Fixed, thanks. |
Thanks, but now the digest verification fails |
|
Back to top |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1990 Location: Poland
|
Posted: Thu Apr 12, 2012 7:29 am Post subject: |
|
|
Yep:
Code: | Calculating dependencies - * Digest verification failed:
* /var/lib/layman/lcd-filtering/media-libs/freetype/freetype-2.4.8.ebuild
* Reason: Filesize does not match recorded size
* Got: 4266
* Expected: 4267 - * Digest verification failed:
* /var/lib/layman/lcd-filtering/media-libs/freetype/freetype-2.4.9-r1.ebuild
* Reason: Filesize does not match recorded size
* Got: 4396
* Expected: 4397 ... done!
|
|
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sat Apr 14, 2012 5:53 pm Post subject: |
|
|
I just tried to add this overlay for the first time. Why is the cleartype flag forced here? Code: | ~> layman -a lcd-filtering
* Running... # /usr/bin/git clone git://gitorious.org/lcd-filtering/lcd-filtering.git /var/lib/layman/lcd-filtering
Cloning into /var/lib/layman/lcd-filtering...
remote: Counting objects: 616, done.
remote: Compressing objects: 100% (607/607), done.
remote: Total 616 (delta 292), reused 0 (delta 0)
Receiving objects: 100% (616/616), 357.61 KiB | 110 KiB/s, done.
Resolving deltas: 100% (292/292), done.
* Successfully added overlay "lcd-filtering".
~> echo "media-libs/fontconfig ~x86" >> /etc/portage/package.keywords/fonts
~> echo "media-libs/freetype ~x86" >> /etc/portage/package.keywords/fonts
~> echo "x11-libs/cairo ~x86" >> /etc/portage/package.keywords/fonts
~> echo "x11-libs/libXft ~x86" >> /etc/portage/package.keywords/fonts
~> echo "media-libs/fontconfig -cleartype lcdfilter" >> /etc/portage/package.use/fonts
~> echo "media-libs/freetype -bindist -cleartype lcdfilter" >> /etc/portage/package.use/fonts
~> echo "x11-libs/cairo -cleartype lcdfilter" >> /etc/portage/package.use/fonts
~> echo "x11-libs/libXft -cleartype lcdfilter" >> /etc/portage/package.use/fonts
~> quietemerge -auNv fontconfig freetype cairo libXft
---------------------------------------------------------- Pretended emerge -----------------------------------------------------------
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ~] media-libs/freetype-2.4.9-r1::lcd-filtering [2.4.9-r1::gentoo] USE="X bzip2 lcdfilter%* -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 0 kB
[ebuild U ~] media-libs/fontconfig-2.8.0-r2::lcd-filtering [2.8.0-r1::gentoo] USE="cleartype%* lcdfilter%* -doc -static-libs%" 0 kB
[ebuild U ~] x11-libs/libXft-2.3.0-r1::lcd-filtering [2.2.0::gentoo] USE="cleartype%* lcdfilter%* -static-libs" 318 kB
[ebuild U ~] x11-libs/cairo-1.10.2-r2::lcd-filtering [1.10.2-r1::gentoo] USE="X cleartype%* glib lcdfilter%* opengl qt4 svg (-aqua) -debug -directfb -doc (-drm) (-gallium) (-openvg) -static-libs -xcb" 0 kB
Total: 4 packages (3 upgrades, 1 reinstall), Size of downloads: 318 kB
The following USE changes are necessary to proceed:
#required by x11-libs/cairo-1.10.2-r2[X], required by cairo (argument)
>=x11-libs/libXft-2.3.0-r1 cleartype
#required by x11-libs/cairo-1.10.2-r2, required by cairo (argument)
>=media-libs/fontconfig-2.8.0-r2 cleartype
~> eselect profile list
Available profile symlink targets:
[1] default/linux/amd64/10.0
[2] default/linux/amd64/10.0/selinux
[3] default/linux/amd64/10.0/desktop *
[4] default/linux/amd64/10.0/desktop/gnome
[5] default/linux/amd64/10.0/desktop/kde
[6] default/linux/amd64/10.0/developer
[7] default/linux/amd64/10.0/no-multilib
[8] default/linux/amd64/10.0/server
[9] hardened/linux/amd64
[10] hardened/linux/amd64/selinux
[11] hardened/linux/amd64/no-multilib
[12] hardened/linux/amd64/no-multilib/selinux |
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sun Apr 15, 2012 10:26 am Post subject: |
|
|
That was very silly of me. I had cairo +cleartype in a separate file in /etc/portage/package.use. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
Element Dave Tux's lil' helper
Joined: 10 Nov 2006 Posts: 82
|
Posted: Tue Apr 24, 2012 1:21 am Post subject: |
|
|
My fonts look much better thanks to the contributed patches. One question: by default the variables below are exported globally. I don't suppose they have analogous counterparts that can be set in a fontconfig XML file, or somewhere besides the environment? I only glanced at the original (infinality) patch, but I'm guessing the only alternative is to define them at compile time.
Code: | INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH
INFINALITY_FT_CONTRAST
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH
INFINALITY_FT_FRINGE_FILTER_STRENGTH
INFINALITY_FT_USE_VARIOUS_TWEAKS
INFINALITY_FT_BRIGHTNESS
INFINALITY_FT_GAMMA_CORRECTION
INFINALITY_FT_FILTER_PARAMS
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE
INFINALITY_FT_STEM_FITTING_STRENGTH
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE
|
|
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Apr 24, 2012 1:46 am Post subject: |
|
|
Element Dave wrote: | counterparts that can be set in a fontconfig XML file |
No. I did mention originally that fontconfig would be better, for flexibility when mixed with the fontconfig rules.
Quote: | alternative is to define them at compile time |
That's what I used to do - check this thread. But /etc/profile.d/ works fine. |
|
Back to top |
|
|
Helmering n00b
Joined: 13 Dec 2011 Posts: 63 Location: Italy
|
Posted: Tue Apr 24, 2012 6:11 pm Post subject: |
|
|
Element Dave wrote: | My fonts look much better thanks to the contributed patches. One question: by default the variables below are exported globally. I don't suppose they have analogous counterparts that can be set in a fontconfig XML file, or somewhere besides the environment? I only glanced at the original (infinality) patch, but I'm guessing the only alternative is to define them at compile time. |
Bi3l doesn't change the patches, he fits them to gentoo. (/etc/env.d/99lcdfilter and /usr/lib/ft-settings.sh)
As a Gentoo user with lcd-filtering overlay applied you should have a look here: http://gitorious.org/lcd-filtering/pages/Freetype
It's very easy to compare directly some different pre-defined profiles reguarding infinilty patches.
Open a terminal, type Code: | ~$ source ft-settings.sh <the style you like to test> |
Afterwards start your prefered browers within the same terminal. With two terminals opened and the same procedure you can easily compare different styles.
I made my choice persistant in /etc/bash/bashrc.
Ralf
Last edited by Helmering on Tue Apr 24, 2012 6:29 pm; edited 1 time in total |
|
Back to top |
|
|
Helmering n00b
Joined: 13 Dec 2011 Posts: 63 Location: Italy
|
Posted: Tue Apr 24, 2012 6:17 pm Post subject: |
|
|
Before you compare:
It's best to disable user.conf and local.conf using |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Apr 27, 2012 4:55 am Post subject: |
|
|
There's a patch for cairo 1.12.0, to allow firefox 12.0 to compile with --enable-system-cairo
I see that Arch are currently using a git snapshot for cairo 1.12.0 |
|
Back to top |
|
|
MarekSieradzki n00b
Joined: 05 Oct 2010 Posts: 18
|
Posted: Fri Apr 27, 2012 11:17 pm Post subject: |
|
|
1. How is it related to this: http://www.antigrain.com/research/font_rasterization/index.html? (method that seems to be correct, look nice and not infringe anything)
Author describes it as:
Quote: |
Use horizontal RGB sub-pixel anti-aliasing for LCD flat panels.
Use vertical hinting only and completely discard the horizontal one.
Use accurate glyph advance values, calculated at a high resolution for unhinted glyphs.
Use accurate, high resolution values from the kerning table.
|
2. Why isn't it upstream already?
3. Why isn't there a guide in first post?
4. Most of all: what does it do? Don't redirect me to reading 100 of pages of configuration XML, thank you. |
|
Back to top |
|
|
mrpdaemon Tux's lil' helper
Joined: 23 Aug 2004 Posts: 134
|
Posted: Sun Apr 29, 2012 9:02 pm Post subject: |
|
|
Thanks for maintaining this awesome overlay. Font rending looks so much better after applying these changes |
|
Back to top |
|
|
^marcs Apprentice
Joined: 09 Mar 2005 Posts: 169
|
Posted: Wed May 02, 2012 5:53 pm Post subject: |
|
|
Anyone else have have some fonts messed up in firefox after recent update?
my current versions
Code: | [ebuild R ] media-libs/freetype-2.4.9-r1::lcd-filtering USE="X bzip2 lcdfilter -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 1,470 kB
[ebuild R ] media-libs/fontconfig-2.9.0::lcd-filtering USE="lcdfilter -cleartype -doc -static-libs" 1,644 kB
[ebuild R ] x11-libs/libXft-2.3.0-r1::x-portage [2.3.0-r1::lcd-filtering] USE="lcdfilter -cleartype -static-libs" 318 kB
[ebuild R ] x11-libs/cairo-1.10.2-r2::lcd-filtering USE="X glib lcdfilter opengl svg xcb (-aqua) -cleartype -debug -directfb -doc (-drm) (-gallium) (-openvg) (-qt4) -static-libs" 23,007 kB
|
example
https://www.dropbox.com/s/rew0xlc8p99uiep/ff_bad_fonts.png |
|
Back to top |
|
|
EatMeerkats Apprentice
Joined: 15 Mar 2006 Posts: 234
|
Posted: Wed May 02, 2012 7:07 pm Post subject: |
|
|
^marcs wrote: | Anyone else have have some fonts messed up in firefox after recent update?
my current versions
Code: | [ebuild R ] media-libs/freetype-2.4.9-r1::lcd-filtering USE="X bzip2 lcdfilter -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 1,470 kB
[ebuild R ] media-libs/fontconfig-2.9.0::lcd-filtering USE="lcdfilter -cleartype -doc -static-libs" 1,644 kB
[ebuild R ] x11-libs/libXft-2.3.0-r1::x-portage [2.3.0-r1::lcd-filtering] USE="lcdfilter -cleartype -static-libs" 318 kB
[ebuild R ] x11-libs/cairo-1.10.2-r2::lcd-filtering USE="X glib lcdfilter opengl svg xcb (-aqua) -cleartype -debug -directfb -doc (-drm) (-gallium) (-openvg) (-qt4) -static-libs" 23,007 kB
|
example
https://www.dropbox.com/s/rew0xlc8p99uiep/ff_bad_fonts.png |
Things look fine here with:
Code: | [ebuild R ~] media-libs/freetype-2.4.9-r1::lcd-filtering USE="X bzip2 lcdfilter -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 1,470 kB
[ebuild R ~] media-libs/fontconfig-2.9.0::lcd-filtering USE="lcdfilter -cleartype -doc -static-libs" 0 kB
[ebuild R ~] x11-libs/libXft-2.3.0-r1::lcd-filtering USE="lcdfilter -cleartype -static-libs" 318 kB
[ebuild R ~] x11-libs/cairo-1.10.2-r2::lcd-filtering USE="X glib lcdfilter opengl svg (-aqua) -cleartype -debug -directfb -doc (-drm) (-gallium) (-openvg) (-qt4) -static-libs -xcb" 23,007 kB |
|
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu May 03, 2012 2:43 am Post subject: |
|
|
^marcs wrote: | in firefox after recent update? |
Well, what did you update?
I would recompile in the correct order:
pixman freetype2 fontconfig libXft cairo pango
In other news, cairo 1.12.2 is out, and running well. |
|
Back to top |
|
|
EatMeerkats Apprentice
Joined: 15 Mar 2006 Posts: 234
|
Posted: Thu May 03, 2012 3:49 am Post subject: |
|
|
PaulBredbury wrote: | I would recompile in the correct order:
pixman freetype2 fontconfig libXft cairo pango |
Please stop telling people to use the "correct order" – there is no "correct order" due to the way Portage works.
bi3l wrote: | PaulBredbury wrote: | The compilation order is wrong. Should be:
Code: | emerge -uNav freetype fontconfig cairo libXft |
Since fontconfig's configure contains "You must have freetype installed". |
As long as the dependancies are correctly defined in the ebuilds and there is no static linking, the order is meaningless. |
|
|
Back to top |
|
|
|