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.

You can get the latest version there: fontconfig-ultimate-2.11.1.13.ebuild. Old one has some bugs. I'll push it to the sunrise repo soon.

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 Thu Jun 12, 2014 1:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Perfect Gentleman
n00b
n00b


Joined: 18 May 2014
Posts: 14

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: 19

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: 163
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
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