Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fontconfig-ultimate - improve font rendering without hassle
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
fau
n00b
n00b


Joined: 01 Apr 2010
Posts: 72

PostPosted: Wed Jun 11, 2014 9:37 pm    Post subject: fontconfig-ultimate - improve font rendering without hassle Reply with quote

Hi,
Here is my attempt to bring fontconfig-ultimate project to Gentoo. Read more about it on author's homepage: http://bohoomil.com/ or below.
It's supposed to be hassle-free so I'll try to keep it short :-)

Screenshots

They may look bad if your monitor doesn't have RGB subpixel layout. Test it here.

Motivation

Probably like most of you I've run into many problems with font rendering on Gentoo. Fontconfig / freetype updates used to break it fairly often and I cba to configure everything manually. Eventually I've decided to deal with it for good. In the process I ran into fontconfig-ultimate project, wrote an ebuild and lived happily ever after.
Looks great, doesn't noticeably change with updates and doesn't require me to maintain it.

Installation

  1. If you want to preserve your current settings you can make a backup copy of /etc/fonts/conf.d
    Code:
    $ cp -ar /etc/fonts/conf.d ~/

  2. Add sunrise overlay
    Code:
    $ layman -a sunrise

  3. Emerge fontconfig-ultimate and follow instructions.
    Code:
    $ emerge fontconfig-ultimate

    Quote:
    1. Disable all rules but 52-infinality.conf using eselect fontconfig
    2. Enable one of "ultimate" presets using eselect infinality
    3. Select ultimate lcdfilter settings using eselect lcdfilter

Keep in mind that some web browsers have internal font rendering engine. Eg. so as to use freetype with firefox you need to compile it with system-cairo use-flag.

Some details after all

The package consists of:
1. A set of configuration files for fontconfig and lcdfilter fine tunning font rendering. Default fontconfig configuration is quite rough and specific fonts need some tweaks to look good. These are provided here.
2. A set of font replacement rules for generic font families (serif, sans, monospace, cursive, fantasy). ultimate-ms and ultimate-free presets use microsoft free internet fonts and their metric-compatible libre alternatives. fonts-extra use-flag installs replacements for even more font families.

All fonts are individually configured for best looks.
Keep in mind that specialized printing and rendering software (such as ghostscript, libreoffice, document viewers, some browsers) use their own fonts and rendering engines so they wont get affected.

Original Arch linux's package contains huge list of fine-tuned font replacement rules for multitude of font families and non-latin scripts. If it's actually needed in the days of webfonts remains an open question. Most of these fonts don't have their ebuilds in gentoo and maintaining them all would be quite cumbersome. If you know any good font manager that can run alongside portage (something like pip for python packages) then please let me know!

Let me know what you think. Please report bugs to me for now because Gentoo's version differs from original.

References


Last edited by fau on Tue Sep 09, 2014 1:02 pm; edited 2 times in total
Back to top
View user's profile Send private message
Perfect Gentleman
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2014
Posts: 108

PostPosted: Thu Jun 12, 2014 10:35 am    Post subject: Reply with quote

fau, it would be great to have ib-fonts collection in Gentoo also.
Back to top
View user's profile Send private message
fau
n00b
n00b


Joined: 01 Apr 2010
Posts: 72

PostPosted: Thu Jun 12, 2014 2:20 pm    Post subject: Reply with quote

Yes it would be cool - especially for non-latin scripts.
However there are some difficulties and I don't think it will happen unless a gentoo dev picks it up. Adding gazzilion font ebuilds to sunrise and maintaining them isn't an option now.
There are 138 fonts in ib-fonts and the total number of fonts in portage is 169 atm. This puts things into perspective :-)
I'll work on adding some more fonts from portage as dependencies though. Now with pfl things will get easier.

This is why I asked if there was a standalone font manager. This would be the best solution for now.

edit: Keep in mind that all default fonts for five standard font families are pulled in as dependencies by fonts-free and fonts-ms use-flag. Some other fonts from ib-meta-extended-lt are pulled too if you enable fonts-extra use-flag.
Back to top
View user's profile Send private message
Astronaut
n00b
n00b


Joined: 06 Oct 2012
Posts: 22

PostPosted: Sun Jul 13, 2014 1:19 am    Post subject: Reply with quote

Hello Fau! I've installed the overlay weeks ago, wasn't aware of this post.

Thanks a lot for your efforts, fonts are remarkably better now
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 173
Location: New Zealand

PostPosted: Sat Aug 16, 2014 10:12 pm    Post subject: Reply with quote

Great stuff, I was using the standard infinality settings before but they looked like a blurred mess compared to these settings!

Thanks! :D
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 20

PostPosted: Thu Dec 04, 2014 2:28 am    Post subject: Reply with quote

Is there any chance you could update the 9999 build, it doesn't seem to work.
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 20

PostPosted: Fri Dec 05, 2014 9:39 pm    Post subject: Reply with quote

I have fixed the 9999 ebuild, it was actually very simple. I think I have everything included and going where it should go:

https://drive.google.com/open?id=0B66bbQPlW2N9SXQ0NXRURXVWVzg


I can see a massive difference with this version, the odd kerning that existed for some fonts has been fixed and everything just looks so much better. I also downloaded most of the infinality-bundle fonts and and I think they're helping.

I'm interested in making an ebuild of for the fonts bundle, one ebuild for the whole lot would be ok? When I downloaded and extracted them all they had a lot of unnecessary stuff with them, mainly for the Arch packages, any suggestions on the best way to cherry pick the fonts and nothing else?
Back to top
View user's profile Send private message
yngwin
Developer
Developer


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

PostPosted: Thu Dec 18, 2014 7:37 am    Post subject: Reply with quote

If any of you want to help get this into the official Gentoo tree, please contact me, so we can work out details. And maybe you can help proxy-maintain (since my time is limited). Let's get the best possible font rendering into Gentoo!
_________________
"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
gerard82
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2232
Location: Netherlands

PostPosted: Thu Dec 18, 2014 8:13 pm    Post subject: Reply with quote

Thanks fau.
Both Thunderbird and Firefox fonts are way better than before.

There's only one thing that hasn't improved:
Some characters are either blueish or redish.
This also occurs in text writers be it libreoffice,kate,kwrite or editra,even text in Gimp!
I wonder what could cause this.
Gerard.

Edit: The blueish and redish fonts I also had before.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
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