SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-03-04 08:45:30

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Black Ivan's Font Task Force

Added alternative Chinese fonts.
Added source for sharp Windows fonts.
Mar 8 2012 Link with many fonts in Debian Squeeze and added unifont to the collection.
Mar 9 2012 Added more fonts.
Mar 21 2012 Make it more blurry.
May 28 2012 Nice fonts when root.

We have that covered thousands of times but I will do that again because of the high demand and for all newcomers to the Debian/CrunchBang world.

First of all, how fonts look like for every person differ very strong, some prefer it Ubuntu like, other sharper etc.

This how-to is for people that want to improve the default font rendering without needs of any patches or extra packages.

Of course you can play with many settings and change them to what you like most.
I will only report about what I use personally and what should be common on laptops.

FreeType fonts

Debian and in general

I can remember since Squeeze the default fonts under a Debian install are better than ever, you have just to change the default rendering. Of course if you are spoiled by Ubuntu, no it won't be exactly the same but it will be smooth and nice.
Anyway we do not want the look of the Ubuntu fonts in our case. If you really need them, maybe you could copy them from an Ubuntu install or an Ubuntu Live CD and put it on your Debian system.

There is also this Infinality thing, just google it, also not our thing here. smile

I will begin with Xfce, one of the less popular DEs here but still used by some #!'ers.
You can do that the easy clicky way from the GUI.

Just open the Xfce Appearance settings, go to Fonts and change your preferred fonts and enable Antialiasing, then switch on Hinting to Slight. Then set Sub Pixel Rendering to RGB.

The last thing is the DPI setting, I use 96, that is the most common setting, if you want to know what to put in here, then do:

xdpyinfo | grep resolution

that will tell you the value for your system.

That's it, log out and log in again. Do you see the difference? smile

If you use Openbox or another Window Manager we will do it a bit different.
First create a file called .Xdefaults in your home folder, maybe you have it already and add this to it:

Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault

You see we did just the same.

Only default CrunchBang after install: 

For some reason on a default #! install the fonts look not that good for us who want a better font appearance. If I can remember, you should apply the above and just delete the content of .fontconfig in your home folder, log out and log in, that's it. If not then do this as root:

dpkg-reconfigure fontconfig-config

Select Autohinter, Always, No and followed by this as root:

dpkg-reconfigure fontconfig 

Of course always log out and log in. Should do the trick.

Bitmap fonts

For all that want to use some extra, nice and sharp bitmap fonts in your terminal we have to enable first the bitmap fonts under a default Debian/CrunchBang install:

cd /etc/fonts/conf.d/

and the following as root:

rm -rf 70-no-bitmaps.conf 
ln -s ../conf.avail/70-yes-bitmaps.conf .
dpkg-reconfigure fontconfig

Some nice Freetype Fonts

My preferred fonts I use or used on my system are Droid Sans, Liberation Sans, Nimbus Sans L and Cantarell
I use Sid, all of them are in the repos and some on a default install. But under Squeeze you have to use the backports to install Droid or take it from the Google site here: http://www.google.com/webfonts#ChoosePlace:select.
For Cantarell under Squeeze download them from here: http://www.google.com/webfonts#ChoosePlace:select.

Some nice Terminal and Mono fonts

What I prefer in my terminal is Terminus, just install it from the repos:

apt-get install xfonts-terminus

Other nice terminal fonts are Anonymous Pro, Droid Sans Mono, Liberation Mono. You can use them also in Gedit or Mousepad, simply beautiful.

If you want to install some new fonts, especially bitmap fonts from outside the repos put them under ~/.fonts or for system wide use under /usr/share/fonts. If they do not show up then rebuild the font cache with:

fc-cache -fv 

Ah, and if you want to list all your fonts simply and fast from the terminal:

fc-list

Do not hesitate to post other suggestions and of course have fun!

Edit: Extras

If you need some basic Asian fonts that are not installed by default to be able to see especially web pages then install these packages on Squeeze:

ttf-arphic-ukaiuming
ttf-arphic-uming
ttf-kochi-mincho
ttf-kochi-gothic
ttf-unfonts-core
ttf-unfonts-extra
ttf-vlgothic

or under Testing/Unstable:

fonts-arphic-uming
fonts-arphic-ukai
fonts-vlgothic

Otherwise you can also install the package unifont, it will give you almost all obscure fonts you ever could need. Thanks to @hhh for this great tip.

Special Chinese fonts, thanks to @Mr. Bacon:

ttf-wqy-zenhei 
ttf-wqy-microhei

Some people will need the Microsoft fonts, this package:

ttf-mscorefonts-installer

For more fonts, here a nice Debian link thanks to @Johnraff: http://packages.debian.org/stable/fonts/. It has even Amharic support etc.

If you want sharp fonts like on Windows XP, look at this source: http://www.sharpfonts.co.cc/. Though I cannot say much about it as I do not use it. Thanks to @smoki for this one.

If you want some extra cool bitmap fonts, there is a collection of @Daisuke on his blog: http://skinwalker.wordpress.com/.

More fonts

Fonts from the Arch Wiki
Montecarlo font
Artwiz fonts

Chrome/ium and other Webkit stuff uglyness under Debian


As I am playing with some minimal Webkit browsers, I noticed that they look really ugly by default under Debian. So, I had to play with my font settings again. I think we covered it already in some thread but I will post it again as it made the Webkit browsers look good, e.g., you can apply it also to Chrome/ium.
I made a .fonts.conf in my home folder with that content:

<?xml version="1.0"?>
   <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
   <fontconfig>
   <match target="font" >
     <edit mode="assign" name="rgba" >
       <const>rgb</const>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="hinting" >
       <bool>true</bool>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="hintstyle" >
       <const>hintslight</const>
     </edit>
   </match>
   <match target="font" >
     <edit mode="assign" name="antialias" >
       <bool>true</bool>
     </edit>
   </match>
   <match target="font">
     <edit mode="assign" name="lcdfilter">
       <const>lcddefault</const>
     </edit>
   </match>
 </fontconfig>

Afterwards all of the nasty looking Webkit browsers should look normal and even your whole system fonts will be a bit more Ubuntu-like. For some folks like @pvsage it will be even more blurry than what we covered before. smile

If you also want to apply the above to have good fonts as root, e.g. Synaptic, Thunar etc. or system wide in general, you could put this fonts conf into:

/etc/fonts

and name it local.conf, do not change fonts.conf. Now you will have nice fonts even as root.

Have fun!

Last edited by ivanovnegro (2012-11-25 23:55:07)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-03-04 10:24:24

Istvan
#! CrunchBanger
From: Budapest, Hungary
Registered: 2010-02-20
Posts: 148

Re: Black Ivan's Font Task Force

Thank you Ivan. Excellent post.


Ha ezt el tudod olvasni, biztosan nem vagy rövidlátó.

Offline

#3 2012-03-04 10:42:13

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Black Ivan's Font Task Force

@Crvena Zvezda, thanks for this post! May I add that there are two Chinese fonts which I prefer over uming and ukai:

ttf-wqy-zenhei 
ttf-wqy-microhei

Offline

#4 2012-03-04 11:09:54

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ Of course, thanks, will add them to the how-to.

Also thank you @Istvan.

Offline

#5 2012-03-04 11:49:11

smoki
#! Junkie
Registered: 2012-02-09
Posts: 256

Re: Black Ivan's Font Task Force

ivanovnegro wrote:

Some people will need the Microsoft fonts, this package:

ttf-mscorefonts-installer

That is I:), after that i use configs from http://www.sharpfonts.co.cc and add tahomas to .fonts.

Verdana 8 is my default.

Offline

#6 2012-03-04 11:52:02

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ That is a good source man, thought to include it. Will do it.

Offline

#7 2012-03-04 12:25:27

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Black Ivan's Font Task Force

cool how-to Black Ivan!

Offline

#8 2012-03-04 15:33:58

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,505

Re: Black Ivan's Font Task Force

Thanks ... definitely agree, nice how to. Sure many people will benefit.

Dafont ... just one of the biggy free fonts sites found searching google for "free fonts" o course. Have added a bunch from there. Not that matters, but myself prefer adding to the /home/username/.fonts folder. Open your /home in thunar, in the menu up top, select View, then select "Show hidden files" or just hit Control key + h to get to your users hidden .fonts folder. <( Learned that from a post by machinebacon recently.) Nice keyboard shortcuts rock! smile

Rather than adding them as root to the system folder. Then doing like Ivan mentions in terminal "fc-cache -fv". Am the only one using this OS though. Which is obviously just a personal preference. Thanks Ivan for bringing this up actually. Could be summin done at default me thinks. I mean cleaning up fonts or whatever ? Some folks really do care about lil finishing touches like that, no doubt. Don't care if buntu has the best fonts in the gnu/nix world, would rather someone hit me with a flaming stick than run that bloated mess. lol

Last edited by CBizgreat! (2012-03-04 15:35:30)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#9 2012-03-04 18:42:20

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,690

Re: Black Ivan's Font Task Force

ivanovnegro wrote:

Only default CrunchBang after install: 

For some reason on a default #! install the fonts look not that good for us who want a better font appearance. If I can remember, you should apply the above and just delete the content of .fontconfig in your home folder, log out and log in, that's it. If not then do this as root:

dpkg-reconfigure fontconfig-config

Select Autohinter, Always, No and followed by this as root:

dpkg-reconfigure fontconfig 

Of course always log out and log in. Should do the trick.

This part was especially helpful to me.  On my netbook, certain font settings caused some color ghosting on vertical lines in Terminator (e.g., in MoC); setting subpixel rendering to never not only fixed this, but also made all the font rendering that much sharper. cool


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#10 2012-03-04 19:43:25

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Black Ivan's Font Task Force

Nice How To Ivanovnegro

Added to Quick References


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#11 2012-03-08 05:19:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,003
Website

Re: Black Ivan's Font Task Force

Ivan, thinking of condensing this into a wiki page some time?

I'd just like to add a suggested font: ttf-vlgothic for Japanese. It's very nice looking for alphabet too, and I prefer it to kochi. My default font.


John
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#12 2012-03-08 13:24:48

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ I posted it already too: fonts-vlgothic has to be the same. Somehow on my Sid install they changed some names of the fonts even though they are the same.

You mean to include that in the #! Wiki, why not.

Offline

#13 2012-03-08 17:33:51

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,003
Website

Re: Black Ivan's Font Task Force

I meant to put your Fonts Guide in the #! wiki, yes.

...maybe wait a few days to see if anyone has any more suggestions to include...


John
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#14 2012-03-08 18:08:54

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Black Ivan's Font Task Force

Really nice guide!

Just one small thing: you mentioned Nimbus Sans L in the Freetype Fonts section, but I can't seem to find that in my repos (I'm on Sid at the moment) - all the others are present, though.


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#15 2012-03-08 18:11:22

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Black Ivan's Font Task Force

scopy, try

apt-get install gsfonts

Offline

#16 2012-03-08 18:14:46

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Black Ivan's Font Task Force

@machinebacon: Nice one, mate - that sorted it smile


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#17 2012-03-08 20:07:54

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,897

Re: Black Ivan's Font Task Force

Nobody's mentioned unifont... it's not the prettiest thing but it serves its purpose, which is to display something for 99% of those empty boxes with numbers you see on the web...
http://en.wikipedia.org/wiki/GNU_Unifont
http://packages.debian.org/search?keywords=unifont

Offline

#18 2012-03-08 20:15:04

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ You mean when you see that boxes e.g. with Japanese fonts, with that font you could read it?

Offline

#19 2012-03-08 20:48:04

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,897

Re: Black Ivan's Font Task Force

Yup yup, almost always. For example, these sites display fine for me, and I'm pretty sure I don't have any Asian fonts installed...
http://www.rakuten.co.jp/
http://www.jpf.go.jp/j/index.html

Or Arabic, for that matter...
http://www.bbc.co.uk/arabic/
http://www.aljazeera.net/portal

Offline

#20 2012-03-08 21:01:31

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ Ok, great will add it.

Edit: That is totally crazy cool @Triple H. I can see now all fonts, without to install Amharic, and some obscure Indian fonts etc., wow.

Last edited by ivanovnegro (2012-03-08 21:05:53)

Offline

#21 2012-03-08 21:21:58

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,897

Re: Black Ivan's Font Task Force

big_smile Like I said, it's not infallible but it takes care of a crap-ton of those damn boxes.

Offline

#22 2012-03-08 22:13:30

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 622
Website

Re: Black Ivan's Font Task Force

Can you suggest me some nice bitmaps font? I usually use Terminus but I am searching an alternative...I tried PF Tempesta Five and i quite like it, but I am not completely satisfied...

Offline

#23 2012-03-08 22:20:37

hhh
Caught in the Vortex
Registered: 2010-08-04
Posts: 1,897

Re: Black Ivan's Font Task Force

@Milozzy, here are a few...
https://wiki.archlinux.org/index.php/Fonts#Bitmap

Another one I've heard is good is Neep...
http://www.jmknoble.net/fonts/

-edit- How could I forget MonteCarlo?
http://www.bok.net/MonteCarlo/

The CLI guys here will have more suggestions, I'm sure.

Last edited by hhh (2012-03-08 22:24:33)

Offline

#24 2012-03-08 22:35:11

Milozzy
#! Die Hard
Registered: 2011-02-22
Posts: 622
Website

Re: Black Ivan's Font Task Force

Wow huge list...thank you very very much!!!

Just another thing, a doubt that I always had: does installing a lot of font have some impact on system performace? Thanks

Offline

Help fund CrunchBang, donate to the project!

#25 2012-03-08 23:21:45

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Black Ivan's Font Task Force

^ Why should fonts have an impact on system performance? smile Never heard about.

And to more bitmap fonts, of course Montecarlo, then there is the quite popular Fixed. Artwiz fonts also. Now do not ask me where I found them all. Will try to edit the how-to, wow, such feedback here, great.

Google will also help. And I will post that after I finish my beer, @Daisuke makes great fonts and also improved Terminus variants etc. So, in some minutes/one hour you will see a link to his blog.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo