Better Ubuntu Fonts

49

38

I have been using Ubuntu for a while. I like it. I like it a lot.

But once in a while, when I switch to Windows, I feel better because I really like the font. It feels really much pleasant to watch windows font.

I installed windows fonts on my system and changed all the the default font settings to Tribuchet 10pt from Sans. It feels better, but still not as good. Oh, BTW, I love the default ubuntu console font. Monospace 10 really rocks. But Sans, oh please.

What is the default font on Windows. How do I enable it on Ubuntu. If it is paid, licensed, or illegal, I don't care, I just want better fonts on my Ubuntu system.

And, also, on a Laptop with LCD screen, should Sub-Pixel Smoothing be enabled?

Update: I tried different fonts for a while on my system, and I think I could do a lot better. I am far from satisfied.

  • The default Sans font, is Ugly, imho.
  • The Arial, Tribuchet MS and some other MS fonts, don't render properly, Tribuchet MS has a problem with e. An extra line on top. I hate it.
  • The good windows fonts Tahoma, Segoe, Callbiri, Cambria all render poorly, due to lack of cleartype.
  • Trying to use this xml, in .fonts.conf that is supposed to magically make rendering smooth, does nothing more than turn on sub pixel smoothing.

    <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font"> <edit name="autohint" mode="assign"> <bool>true</bool> </edit> </match> </fontconfig>

  • Turning on sub-pixel smoothing makes the font bold at the cost of clear shapes, it is a turn off. The otherwise awesome Monospace font also looks bad.

What is the best font I can have on my Ubuntu system. It is alright if it is commercial and expensive. I could do with better font typefaces.

Lakshman Prasad

Posted 2009-08-08T00:34:38.667

Reputation: 2 245

When choosing the subpixel ordering for your monitor see http://www.lagom.nl/lcd-test/subpixel.php for sample images and text generated for each of the four layout possibilities (RGB, VRGB, BGR, VBGR) - that page also has the helpful advice that the default of RGB is usually right (and it was for me)

– Tom Goodfellow – 2015-04-14T09:31:01.180

Answers

33

I also like Windows fonts much better than the defaults on any Linux distributions. Well, at least the Windows XP default, Tahoma. (Also, I prefer no antialiasing at all for small font sizes, when using good TrueType fonts. Your mileage may vary!)

These days I find it very easy to get nice fonts in Ubuntu. (Gone are the days of needing to recompile Freetype with a certain option (I forget which) to get them right.)

Steps I took when last installing Ubuntu afresh

  1. Put your TrueType fonts (.ttf files from Windows installation or e.g. the Microsoft Core Fonts package legally available on the web) in some directory, e.g. /usr/local/winfonts.
  2. Edit /etc/fonts/local.config and add your winfont dir:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <!-- /etc/fonts/fonts.conf file to configure system font access -->
    <fontconfig>
            <!-- Font directory list -->
            <dir>/usr/local/winfonts</dir> 
            <dir>/usr/share/X11/fonts/misc</dir>
    </fontconfig>
    
  3. Run sudo fc-cache -fv to rebuild font information cache files. (Nowadays there's no need to create files like fonts.scale, fonts.dir or fonts.alias using ttmkfdir or other utilities!)

Then configure Tahoma 8 as the default font in your desktop environment (KDE's control centre for me; equally easy in the Gnome equivalent)

And that's it.

Alternative way

Another way is to simply install msttcorefonts package from Universe and run fc-cache, as instructed in this post on Ubuntu Blog.

The core fonts package doesn't include Tahoma though. But if you have it from other sources, copying the .ttf files to ~/.fonts/ (or /usr/local/share/fonts for system wide availability) before running fc-cache should be sufficient.

Jonik

Posted 2009-08-08T00:34:38.667

Reputation: 5 352

For those who, like me, prefer TrueType fonts with no antialiasing, also check out this problem which I just got solved: http://superuser.com/questions/54216/how-to-get-firefox-to-use-ms-truetype-fonts-for-helvetica-times-etc/54224#54224 With that advice you can make some websites look a lot better on Linux.

– Jonik – 2010-02-12T07:51:39.570

2I do as your guide (install mscorefonts) and fc-cache then set fonts in Appearance -> Fonts (my system is Ubuntu 10.4) But the font still does not look as good as your image. Did you have any additional steps such as settings in Firefox ? – ramcrys – 2013-03-08T10:54:47.550

@ramcrys: Hmm, possibly... Try looking into Firefox's font settings, and set "Serif" font to Times New Roman & "Sans-serif" to Arial. – Jonik – 2013-03-08T17:09:31.310

Works for me, Xubuntu 13.04. – Green – 2013-07-07T15:21:50.980

1Also, if you prefer KDE but still use some GTK applications (e.g. Firefox), you'll probably want to go to Control Center -> Appearance & Themes -> GTK Styles and Fonts and choose "KDE style" and "KDE fonts" for GTK apps. – Jonik – 2010-01-15T16:31:11.287

And personally I find that having gnome-settings-daemon running makes the font sizes just right. (I don't know why exactly, and YMMV.) – Jonik – 2010-01-15T16:40:36.103

6

I believe the default font is either:

  • Windows XP: Tahoma
  • Windows Vista / Windows 7: Segoe UI

You may also like Calibri. That's a nice font too.

Since you mentioned you have a windows system, you should be able to grab these licensed fonts without any drama.

EvilChookie

Posted 2009-08-08T00:34:38.667

Reputation: 4 519

1Calibri looks like crap under Ubuntu for me, for some reason. It looks great on Windows though. – Annath – 2009-08-08T00:47:13.860

3@Annath: ClearType. Windows has it, Unbuntu/Linux doesn't. – Jordan S. Jones – 2009-08-08T00:51:41.523

@Annath So what looks good on Ubuntu? Tribuchet? – Lakshman Prasad – 2009-08-08T01:12:20.750

11Jordan: That's nonsense. The difference comes not from subpixel rendering or lack thereof (Linux has that, by the way). The difference lies in the fact that FreeType can't use the TrueType hinting in the fonts for licensing reasons, so they do auto-hinting – which works great on fonts without any display hints but looks ugly on msot fonts that are very carefully hinted, like most Windows fonts nowadays are. – Joey – 2009-08-08T01:26:06.287

I'm using the Liberation Sans and it looks pretty good. – chris – 2009-09-08T23:39:27.350

2

I do recommend enabling Sub-pixel smoothing, makes it much easier on your eyes. Unfortunately, Firefox doesn't seem to use sub pixel smoothing, atleast for me.

Sathyajith Bhat

Posted 2009-08-08T00:34:38.667

Reputation: 58 436

For firefox, see my question: http://superuser.com/questions/13441/

– hasen – 2009-08-08T06:17:09.937

2

On an LCD you should definitely enable Sub pixel smoothing. It uses the sub pixels (the red green blue) to triple your horizontal resolution for fonts. In theory this adds some color fringing, but because the eye likes brightness more than color, you don't see it.

Sorry, I can't say much about the Windows fonts.

Mike Cooper

Posted 2009-08-08T00:34:38.667

Reputation: 2 036

2

I use Bitstream Vera fonts on Firefox. It's still not as good as it looks on Windows, but its a whole lot better than how it used to look.

This is what Wikipedia has to say:

Vera is a typeface (font) with a liberal license. It was designed by Jim Lyles from Bitstream, and is closely based on Bitstream's Prima, for which Lyles was also responsible. It is a TrueType font with full hinting instructions, which improve its rendering quality on low-resolution devices such as computer monitors.

Although Vera itself covers only common punctuation and the Latin alphabet with some diacritics, its license allows others to make and distribute derivative works with some restrictions, and the DejaVu fonts project is expanding it with additional glyphs and styles. With over 80% installation base, the DejaVu fonts have been gaining on the role as sans-serif default fonts in GNU/Linux. On Windows and Macintosh systems, DejaVu is however practically unknown, whereas Bitstream Vera Sans has installation bases of 25% and 20% there, and 79% on Unix, according to a survey.

Below is a screenshot of how Firefox looks with this font. Sub-pixel smoothing is also enabled.

enter image description here

user4358

Posted 2009-08-08T00:34:38.667

Reputation:

2

See also: Texts Rasterization Exposures by Maxim Shemanarev. I don't know if any Linux distribution is doing what he suggests.

Jouni K. Seppänen

Posted 2009-08-08T00:34:38.667

Reputation: 447