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 ... 24, 25, 26, 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Sun Jul 01, 2012 2:05 pm    Post subject: Reply with quote

Using MeisterP's overlay, w/ infinality setting "Linux" and DejaVu fonts -- suitable replacement for ClearType, which I liked quite a bit.

Had to remember to enable infinality.conf with 'eselect fontconfig' .
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Sun Jul 01, 2012 3:45 pm    Post subject: Reply with quote

One issue: on dark backgrounds (e.g., my terminal) my lowercase "m"'s have a reddish tinge them, I suppose because the stems are thinner than my pixels. However, I did not observe this with ClearType -- any solutions?

(See PNG image.)
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jul 01, 2012 4:42 pm    Post subject: Reply with quote

Hypnos wrote:
reddish tinge

You probably want a rule using e.g. (as a bit of it):

Code:
    <test name="pixelsize" compare="less_eq">
        <double>12</double>
    </test>
    <edit mode="assign" name="rgba">
        <const>none</const>
    </edit>
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Sun Jul 01, 2012 9:55 pm    Post subject: Reply with quote

I added the following to /etc/fonts/local.conf:
Code:
<match target="font">
    <test name="pixelsize" compare="less_eq">
        <double>12</double>
    </test>
    <edit mode="assign" name="rgba">
        <const>none</const>
    </edit>
</match>

to no avail. Logging out/in did not change the result.

During the day the problem is not as apparent; I'll check again tonight. (In fact, during the day, the infinality font rendering is gorgeous.)
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Mon Jul 02, 2012 4:54 am    Post subject: Reply with quote

Also, tried the Ubuntu preset in 99lcdfilter. Predictably, this one is more ClearType-like: less crisp/impressive, but also less apparent color fringing for white text on black backgrounds. Still, I never noticed any color fringing with ClearType, whereas I do notice some on the Ubuntu preset.

Finally, while fonts in the main Skype window and chat windows are fine, in the menus they are gigantic. I chalk this up to using precompiled 32-bit Qt emulation libraries inducing some incompatibility.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Wed Jul 04, 2012 4:25 am    Post subject: Reply with quote

If I use the "Linux" settings in infinality config as well as in /etc/env.d/99lcdfilter, then in the latter set the following custom values:

Code:
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=30
INFINALITY_FT_FRINGE_FILTER_STRENGTH=100

I cut most of the color fringing/harshness, at the cost of a little bit of crispness.

Easier on the eyes in artificial light, while still being more than adequate in sunlight.

If I only set the fringe filter strength, I get bad glyph shapes.

YMMV.

********

EDIT:

Found the holy grail -- '"linux" eselect infinality setting, with "INFINALITY" presets in /etc/env.d/99lcdfilter .

Gorgeous rending of larger/bold text, ClearType-like readability of smaller text, and no color fringing in my terminals.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
angry_vincent
n00b
n00b


Joined: 21 Feb 2010
Posts: 30

PostPosted: Sat Jul 14, 2012 7:00 am    Post subject: Reply with quote

app-text/poppler included in overlay but it's outdated, any particular reason?
_________________
http://www.funtoo.org
Back to top
View user's profile Send private message
angry_vincent
n00b
n00b


Joined: 21 Feb 2010
Posts: 30

PostPosted: Sun Jul 15, 2012 10:20 am    Post subject: Reply with quote

Another issue, in wiki suggested to set -cleartype flag, however in cairo and fontconfig ebuilds +cleartype IUSE is set. I think, it's better to make flag optional? And vice versa set +lcdfilter as it makes sense.
_________________
http://www.funtoo.org
Back to top
View user's profile Send private message
angry_vincent
n00b
n00b


Joined: 21 Feb 2010
Posts: 30

PostPosted: Wed Jul 18, 2012 12:25 pm    Post subject: Reply with quote

Next issue, libXft-2.3.1 has no IUSE, lcdfilter is supposed to be there, no one bother about +cleartype, which is set in older revisions of libXft.
_________________
http://www.funtoo.org
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Wed Jul 18, 2012 12:44 pm    Post subject: Reply with quote

angry_vincent,

Are you sure you're looking at the right overlay? I'm using fontconfig, libXft and poppler from the Gentoo tree, as they are most up-to-date; cairo is from infinality. None of these ebuilds have either the lcdfilter or cleartype USE flags. The only ebuild that should/needs to have lcdfilter enabled is freetype from infinality (required by the infinality cairo ebuild).
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
angry_vincent
n00b
n00b


Joined: 21 Feb 2010
Posts: 30

PostPosted: Wed Jul 18, 2012 1:03 pm    Post subject: Reply with quote

it is what lcd-filtering providing, all issues about that overlay.
_________________
http://www.funtoo.org
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Wed Jul 18, 2012 1:09 pm    Post subject: Reply with quote

angry_vincent wrote:
it is what lcd-filtering providing, all issues about that overlay.

Ah. Anyway, as I described, the infinality overlay does not have these issues.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Thu Jul 19, 2012 6:45 pm    Post subject: Reply with quote

angry_vincent wrote:
Next issue, libXft-2.3.1 has no IUSE, lcdfilter is supposed to be there, no one bother about +cleartype, which is set in older revisions of libXft.

Fixed the wiki.
angry_vincent wrote:
Another issue, in wiki suggested to set -cleartype flag, however in cairo and fontconfig ebuilds +cleartype IUSE is set. I think, it's better to make flag optional? And vice versa set +lcdfilter as it makes sense.

Ok, I'll change that.
angry_vincent wrote:
app-text/poppler included in overlay but it's outdated, any particular reason?

No, it should be removed.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4394
Location: Suzhou, China

PostPosted: Mon Jul 23, 2012 2:24 pm    Post subject: Reply with quote

I have added the ebuilds from MeisterP's infinality-overlay to the betagarden overlay (this is the official dev playground) for more exposure. I will discuss with the relevant package maintainers on getting these into the official tree.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4394
Location: Suzhou, China

PostPosted: Thu Jul 26, 2012 5:53 am    Post subject: Reply with quote

I have taken over maintainership of cairo, so the necessary patches have been applied to 1.10.2-r3 and 1.12.2-r2 in the official portage tree. So you can drop cairo from your overlays.

Next I want to apply the freetype patches, but I will probably "hide" them behind an "infinality" useflag, so as not to upset dev and users who prefer to keep vanilla freetype. Obviously I also will add fontconfig-infinality then, and MeisterP's eselect module. But first I would like to impove the latter, so users don't need to edit /etc/env.d/99lcdfilter by hand.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
shad0w_GR
n00b
n00b


Joined: 06 Apr 2011
Posts: 16

PostPosted: Fri Jul 27, 2012 11:17 am    Post subject: Reply with quote

Is overlay down?I cannot since yesterday add locally the repo.

Edited: Seems that git wasnt pulled by layman.Now it is ok.
Back to top
View user's profile Send private message
danilo2
n00b
n00b


Joined: 01 Oct 2010
Posts: 73

PostPosted: Sat Jul 28, 2012 11:00 pm    Post subject: Reply with quote

Hi!
Thank you very much for this thread and all efforts putting in rendering beautifull ofnts in gentoo :)

I'm a little bit confused right now. Could you please tell me where can I find a summary what should I do to get the best results?

It is really hard to read this thread from the very beginning.
I've found some sites like:
http://blog.segfault.co.in/?p=192
https://linuxtidbits.wordpress.com/2008/11/25/better-lcd-font-rendering/
(why there is -cleartype flag used ?)

maybe this manuals are describing the best way?:
http://gitorious.org/lcd-filtering/pages

thanks
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 145

PostPosted: Sat Jul 28, 2012 11:16 pm    Post subject: Reply with quote

I couldn’t find MeisterP’s overlay in layman’s list of overlays, therefore I wrote local definition.
/etc/layman/infinality-overlay.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
<repositories xmlns="" version="1.0">
   <repo quality="experimental" status="unofficial">
      <name><![CDATA[ infinality ]]></name>
      <description lang="en"><![CDATA[ MeisterP's Infinality patches overlay ]]></description>
      <homepage>https://github.com/MeisterP/infinality-overlay.git</homepage>
      <owner type="person">
         <email>poncho@spahan.ch</email>
         <name><![CDATA[ Poncho ]]></name>
      </owner>
      <source type="git">git://github.com/MeisterP/infinality-overlay.git</source>
      <feed>https://github.com/MeisterP/infinality-overlay/commits/master.atom</feed>
   </repo>
</repositories>
To use it, add something like file:///etc/layman/infinality-overlay.xml to overlays section of /etc/layman.cfg.
Back to top
View user's profile Send private message
danilo2
n00b
n00b


Joined: 01 Oct 2010
Posts: 73

PostPosted: Sat Jul 28, 2012 11:56 pm    Post subject: Reply with quote

Do we have to use MeisterP overlay or is it good to use one of these instructions:
http://blog.segfault.co.in/?p=192
https://linuxtidbits.wordpress.com/2008/11/25/better-lcd-font-rendering/
http://gitorious.org/lcd-filtering/pages
?

Additional - after following instruction in http://gitorious.org/lcd-filtering/pages something strange happened to my system. All fonts that was not supposed to be antialiased (like proggy, terminus etc) dissappeared from my system and were replaced by other fonts. (I cannot event find them in the font list) :(
my eselect fontconfig list: http://bpaste.net/show/37306/
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Sun Jul 29, 2012 1:32 am    Post subject: Reply with quote

Here's how I got my font setup working with MeisterP's overlay:

1) Followed these instructions

2) Then I experimented with combinations of the "eselect infinality" setting and the style in /etc/env.d/99lcdfilter. My best combination so far is "Linux" eselect plus the "infinality" style. You may have to manually restart some applications (or log out/back in) in order to see the changes.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jul 29, 2012 9:43 am    Post subject: Reply with quote

yngwin wrote:
necessary patches have been applied

I wait years, bitching as appropriate, then ya spell my name wrong :x
Back to top
View user's profile Send private message
danilo2
n00b
n00b


Joined: 01 Oct 2010
Posts: 73

PostPosted: Sun Jul 29, 2012 10:57 am    Post subject: Reply with quote

1) Hypnos -> while emerging from this overlay I get circular dependency problem (which cannot besolved by disabling some use flags :()
Code:
(media-libs/fontconfig-infinality-20120615::infinality-overlay, ebuild scheduled for merge) depends on
 (media-libs/freetype-2.4.10::infinality-overlay, ebuild scheduled for merge) (runtime)
  (media-libs/fontconfig-infinality-20120615::infinality-overlay, ebuild scheduled for merge) (runtime)


2) Do you know how can I fix my not antialiased fonts (the problem is described in my previous post)?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3206

PostPosted: Sun Jul 29, 2012 11:22 am    Post subject: Reply with quote

PaulBredbury wrote:
yngwin wrote:
necessary patches have been applied

I wait years, bitching as appropriate, then ya spell my name wrong :x
:lol:
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2868
Location: Omnipresent

PostPosted: Sun Jul 29, 2012 11:54 am    Post subject: Reply with quote

danilo2 wrote:
1) Hypnos -> while emerging from this overlay I get circular dependency problem (which cannot besolved by disabling some use flags :()
Code:
(media-libs/fontconfig-infinality-20120615::infinality-overlay, ebuild scheduled for merge) depends on
 (media-libs/freetype-2.4.10::infinality-overlay, ebuild scheduled for merge) (runtime)
  (media-libs/fontconfig-infinality-20120615::infinality-overlay, ebuild scheduled for merge) (runtime)

Since they are each run-time, not build-time, dependencies of one another, it's okay to instruct your package manager to ignore one of the dependencies to break the cycle and install them one by one . I use Paludis, so invoked

Code:
#  cave-resolve -1x freetype fontconfig-infinality --no-dependencies-from fontconfig-infinality


Quote:
2) Do you know how can I fix my not antialiased fonts (the problem is described in my previous post)?

I bet the fonts are just there, just not enabled. Your fontconfig list shows terminus.conf is there, but not activated. I think if you successfully install MeisterP's package set, and select "linux" under "eselect infinality", the fonts will come back. If not, you can try reinstalling the fonts.

If none of these work we'll have to investigate.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jul 29, 2012 12:08 pm    Post subject: Reply with quote

danilo2 wrote:
All fonts that was not supposed to be antialiased (like proggy, terminus etc) dissappeared from my system and were replaced by other fonts.

You have 70-no-bitmaps.conf enabled. Proggy is a bitmap font. So tweak the rule so it doesn't apply to Proggy.
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 ... 24, 25, 26, 27, 28, 29  Next
Page 25 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