Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting Beautiful Fonts in Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kev009
n00b
n00b


Joined: 17 Oct 2005
Posts: 43
Location: Tempe, Arizona

PostPosted: Fri Dec 04, 2009 12:58 pm    Post subject: Getting Beautiful Fonts in Gentoo Reply with quote

Hello all,

I just wrote a guide for enabling some common fontconfig tricks and making Gentoo typography look nicer than the defaults.

http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/

Regards,
Kevin
_________________
http://www.kev009.com
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri Dec 04, 2009 2:55 pm    Post subject: Reply with quote

Good guide! :D
Additionally, the following might also help if you put it in your ~/.fonts.conf:
Code:
 <!-- Hinting -->
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
 <!-- Disable autohint for bold fonts, o/w they look *too* bold -->
 <match target="font" >
  <test compare="more" name="weight" >
   <const>medium</const>
  </test>
  <edit mode="assign" name="autohint" >
   <bool>false</bool>
  </edit>
 </match>

Here is how teh same wikipedia page looks in mine: http://omploader.org/vMnd4Ng
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
kev009
n00b
n00b


Joined: 17 Oct 2005
Posts: 43
Location: Tempe, Arizona

PostPosted: Fri Dec 04, 2009 5:07 pm    Post subject: Reply with quote

Thanks for the tip. I've included my ~/.fonts.conf on the page.
_________________
http://www.kev009.com
Back to top
View user's profile Send private message
StinkingMonkey
Apprentice
Apprentice


Joined: 24 May 2003
Posts: 183
Location: UK

PostPosted: Fri Dec 04, 2009 5:59 pm    Post subject: Reply with quote

thank you , noticeable difference particularly in my terminal , i can now read the bold parts :)
_________________
Intel Q6600, Asus P5N32-E SLI, Audigy2 ZS, Gainward 7950
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Dec 04, 2009 6:12 pm    Post subject: Reply with quote

Nice guide! Personally, I've been quite happy with the fonts on my machines, but that is probably because I do some of the things you suggest. I will need to try the remaining suggestions to see if it impacts my configuration.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54098
Location: 56N 3W

PostPosted: Fri Dec 04, 2009 6:30 pm    Post subject: Reply with quote

Moved from Desktop Environments to Documentation, Tips & Tricks.

As its not a support question
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 359
Location: España

PostPosted: Fri Dec 04, 2009 6:56 pm    Post subject: Reply with quote

Thank you, good guide !

Luis
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Dec 04, 2009 9:35 pm    Post subject: Reply with quote

The type1 (or type1-fonts, which is what I think you meant) USE flag no longer exists, but that's just a nit. Fabulous guide. :D

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
mack1
Guru
Guru


Joined: 18 Mar 2006
Posts: 315

PostPosted: Fri Dec 04, 2009 11:41 pm    Post subject: Reply with quote

Thanks, nice guide :D !
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Sat Dec 05, 2009 12:37 am    Post subject: Reply with quote

Thanks kev. Nice guide and bookmarked.
Back to top
View user's profile Send private message
mjf55
Guru
Guru


Joined: 25 Aug 2007
Posts: 372

PostPosted: Sat Feb 27, 2010 10:41 am    Post subject: Reply with quote

Just found this guide. Very Nice job Kevin. now my fonts look great
_________________
Mark
No longer a n00b, but still a 'Kool Kid' wannabe
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Mar 16, 2010 12:42 pm    Post subject: Reply with quote

People have generously provided "~/.fonts.conf" files. Is /etc/fonts/fonts.conf an equivalent for a site-wide deployment? (actually "/etc/fonts/fonts.d/51-local.conf"?) I'd rather put this in there than update everyone's (in the family on a home machine) account.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Tue Mar 16, 2010 3:31 pm    Post subject: Reply with quote

Thank's for the nice guide I will definitely give these a try tonite when I get home. I also found very amusing (and informative) your "Godwin's Law" response to Pedro on your blog :) ... Kinda made my day.
_________________
Increasingly becoming a 2 channel audio nut!
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 16, 2010 8:12 pm    Post subject: Reply with quote

I'm gonna test that for sure.
Back to top
View user's profile Send private message
gregool
Guru
Guru


Joined: 26 Nov 2007
Posts: 336
Location: Lille

PostPosted: Thu Apr 22, 2010 6:24 pm    Post subject: Reply with quote

[borat_voice ] very good [/borat_voice]
Back to top
View user's profile Send private message
Nuggs
n00b
n00b


Joined: 14 May 2010
Posts: 2

PostPosted: Wed May 19, 2010 7:10 pm    Post subject: Reply with quote

Sweet, thanks for this!
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Wed May 21, 2014 12:46 am    Post subject: Reply with quote

Good.
But in http://wiki.gentoo.org/wiki/Fontconfig, autohint is sugested to be disable:
Quote:

Autohinter attempts to do automatic hinting disregarding any existing hinting information. Until recently it was the default because TrueType2 was covered by patents but now that they have expired there's very little reason to use it. From technical point of view it does better than broken or no hinting information but it will be strongly sub-optimal for fonts with good hinting information. Generally system fonts are of the second kind so autohinter should not be used.


Last edited by XQZS on Wed May 21, 2014 1:00 am; edited 1 time in total
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Wed May 21, 2014 12:54 am    Post subject: Reply with quote

Thank you!
Back to top
View user's profile Send private message
manueltorrez
n00b
n00b


Joined: 20 May 2014
Posts: 10

PostPosted: Fri May 23, 2014 10:13 am    Post subject: Reply with quote

nice work....
thanx... :)
Back to top
View user's profile Send private message
dmnc
n00b
n00b


Joined: 03 Jun 2014
Posts: 2

PostPosted: Tue Jun 10, 2014 7:37 am    Post subject: 70-no-bitmaps.conf breaks my terminal Reply with quote

Enabling 70-no-bitmaps.conf solve the issue in the Chromium (v.36) but breaks my terminal where I'm using 'Fixed' font. So better to have ugly web ...
Any clue please?

screenshots: http://imgur.com/a/sty8q
Back to top
View user's profile Send private message
dmnc
n00b
n00b


Joined: 03 Jun 2014
Posts: 2

PostPosted: Tue Jun 10, 2014 8:47 am    Post subject: Re: 70-no-bitmaps.conf breaks my terminal Reply with quote

dmnc wrote:
Enabling 70-no-bitmaps.conf solve the issue in the Chromium (v.36) but breaks my terminal where I'm using 'Fixed' font. So better to have ugly web ...
Any clue please?

screenshots: http://imgur.com/a/sty8q


Solution: http://superuser.com/a/766803/29696 (29-replace-bitmap-fonts.conf)
Back to top
View user's profile Send private message
defer-
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2007
Posts: 140
Location: Finland

PostPosted: Sat Jun 28, 2014 8:31 pm    Post subject: Reply with quote

I always liked the default rendering with eselect fontconfig configured to my taste

EDIT:

This is how i got very sharp and nice fonts:
1. Disable everything you dont absolutely need from eselect fontconfig.
2. Restart X.

My settings:
Code:
  [2]   10-no-sub-pixel.conf *
  [17]  30-metric-aliases.conf *
  [18]  30-urw-aliases.conf *
  [19]  40-nonlatin.conf *
  [20]  45-latin.conf *
  [21]  49-sansserif.conf *
  [22]  50-user.conf *
  [23]  51-local.conf *
  [27]  60-latin.conf *

_________________
https://github.com/defer-
Back to top
View user's profile Send private message
Vicfred
n00b
n00b


Joined: 17 Nov 2009
Posts: 10

PostPosted: Sun Jul 06, 2014 2:44 am    Post subject: Reply with quote

very nice also your blog looks fine :wink:
Back to top
View user's profile Send private message
jmg36
n00b
n00b


Joined: 15 Jul 2014
Posts: 1

PostPosted: Tue Jul 15, 2014 5:53 pm    Post subject: fonts Reply with quote

Got fonts to look proper in Chromium using the following eselect fontconfig setup on a dual Dell 19" display (2560x1024):

$ equery l chromium
* Searching for chromium ...
[IP-] [ ] www-client/chromium-36.0.1985.103:0

$ eselect fontconfig list
Available fontconfig .conf files (* is enabled):
[1] 10-autohint.conf *
[2] 10-no-sub-pixel.conf
[3] 10-scale-bitmap-fonts.conf
[4] 10-sub-pixel-bgr.conf
[5] 10-sub-pixel-rgb.conf *
[6] 10-sub-pixel-vbgr.conf
[7] 10-sub-pixel-vrgb.conf
[8] 10-unhinted.conf
[9] 11-lcdfilter-default.conf *
[10] 11-lcdfilter-legacy.conf
[11] 11-lcdfilter-light.conf
[12] 20-unhint-small-dejavu-sans.conf *
[13] 20-unhint-small-dejavu-sans-mono.conf *
[14] 20-unhint-small-dejavu-serif.conf *
[15] 20-unhint-small-vera.conf *
[16] 25-ttf-arphic-ukai-render.conf *
[17] 25-ttf-arphic-uming-bitmaps.conf
[18] 25-ttf-arphic-uming-render.conf *
[19] 25-unhint-nonlatin.conf *
[20] 30-metric-aliases.conf *
[21] 30-urw-aliases.conf *
[22] 35-ttf-arphic-ukai-aliases.conf *
[23] 35-ttf-arphic-uming-aliases.conf *
[24] 40-nonlatin.conf *
[25] 41-ttf-arphic-ukai.conf *
[26] 41-ttf-arphic-uming.conf *
[27] 42-luxi-mono.conf *
[28] 44-wqy-zenhei.conf *
[29] 45-latin.conf *
[30] 49-sansserif.conf *
[31] 50-user.conf *
[32] 51-local.conf *
[33] 57-dejavu-sans.conf *
[34] 57-dejavu-sans-mono.conf *
[35] 57-dejavu-serif.conf *
[36] 59-google-droid-sans.conf *
[37] 59-google-droid-sans-mono.conf *
[38] 59-google-droid-serif.conf *
[39] 60-latin.conf *
[40] 64-ttf-arphic-uming.conf *
[41] 65-fonts-persian.conf *
[42] 65-khmer.conf *
[43] 65-nonlatin.conf *
[44] 66-ja-ipafonts.conf *
[45] 66-lohit-assamese.conf *
[46] 66-lohit-bengali.conf *
[47] 66-lohit-gujarati.conf *
[48] 66-lohit-hindi.conf *
[49] 66-lohit-kannada.conf *
[50] 66-lohit-kashmiri@devanagari.conf *
[51] 66-lohit-konkani.conf *
[52] 66-lohit-maithili.conf *
[53] 66-lohit-marathi.conf *
[54] 66-lohit-oriya.conf *
[55] 66-lohit-punjabi.conf *
[56] 66-lohit-sindhi@devanagari.conf *
[57] 66-lohit-tamil.conf *
[58] 66-lohit-telugu.conf *
[59] 66-wqy-zenhei-sharp.conf *
[60] 66-wqy-zenhei-sharp-no13px.conf *
[61] 67-lohit-malayalam.conf *
[62] 67-lohit-nepali.conf *
[63] 69-unifont.conf *
[64] 70-no-bitmaps.conf *
[65] 70-yes-bitmaps.conf
[66] 75-ttf-arphic-ukai-select.conf *
[67] 80-delicious.conf *
[68] 90-synthetic.conf *
[69] 90-ttf-arphic-ukai-embolden.conf *
[70] 90-ttf-arphic-uming-embolden.conf *
[71] 99pdftoopvp.conf *
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1759
Location: PB, Germany

PostPosted: Thu Feb 05, 2015 10:42 am    Post subject: Reply with quote

Hi thanks for that hints.
I came here because after moving my physical Gentoo desktop (Xfce) into a VMware fonts in Firefox became bad... I never thought about eselect fontconfig and just enabled the DejaVu fonts in Xfce and Firefox.
I also enabled anti-aliasing and hinting, but in the VM that did not help.

What exactly does eselect fontconfig do? Why not enabling everyhing there? Is this providing the fonts to be actually selectable from the Gtk-Apps? What happens if I'm using DejaVu Sans without enabling
[26] 57-dejavu-sans.conf?

btw. for terminals I always preferred the media-fonts/terminus-font, for X and also consolefonts.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
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
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