6

https://dl.dropboxusercontent.com/u/2188345/fonts.png

As you can see, Nautilus font has suddenly stopped respecting the OS defaults. It happened by random after a boot today. Resetting fonts to default does not help.

Any ideas what's happening?

Edit: Link to full image https://dl.dropboxusercontent.com/u/2188345/fonts.png

red
  • 437
  • Did you recently install MS Corefonts? (ttf-mscorefonts-installer package) My system is doing this tonight, and I installed the fonts earlier. – Tommy Trussell Jan 29 '15 at 07:05

2 Answers2

13

This happened to me after installing the ttf-mscorefonts-installer package. I tinkered a bit and now Nautilus looks right again (it's back to using the Ubuntu font, as it normally does in Ubuntu).

Here is my procedure:

1) I opened a terminal and executed this fontconfig command:

$ fc-cache -rv

2) After the command finished, I logged out and logged back in.

I found other helpful font information in these questions:

Firefox fonts changed after install ttf-mscorefonts (This is what convinced me there may be problems installing the ttf-mscorefonts-installer package.)

Can I override fonts installed by ttf-mscorefonts-installer, prefer Liberation fonts? (This is where I got the idea of trying a fontconfig command.)

UPDATE: As I mentioned in the comment below, I decided the ttf-mscorefonts-installer causes problems in recent versions of Ubuntu, so I removed it. Nowadays LibreOffice includes the Liberation fonts, which are metrically-compatible with three of the common fonts:

  • Liberation Serif: same metrics as Times New Roman
  • Liberation Sans: same metrics as Arial
  • Liberation Mono: same metrics as Courier

If you don't use LibreOffice, you can get the fonts above by installing fonts-liberation package.

You can also match some other common Microsoft fonts:

  • Carlito: same metrics as Calibri
  • Caladea: same metrics as Cambria

The two fonts above are available by installing the fonts-crosextra-carlito and fonts-crosextra-caladea packages.

If you need a font compatible with Impact, Verdana, Trebuchet or Webdings, unfortunately I don't have a suggestion at this time.

  • After lots of back-and-forth upgrading and downgrading various things on a new system, I have decided the ttf-mscorefonts-installer causes all sorts of odd problems and most folks probably don't want to bother with it. I used to consider it almost essential for dealing with cross-platform font issues. For LibreOffice, the Liberation fonts are metrically-compatible with Times New Roman (Liberation Serif), Arial (Liberation Sans), and Courier (Liberation Mono), and the Carlito and Caladea fonts (both now provided with LO) are metrically-compatible with Calibri and Cambria respectively. – Tommy Trussell Feb 16 '15 at 04:23
  • Update 6/2015: I found a site which describes some more open-source font "equivalents," however its focus is on fonts that resemble Windows fonts and they may not be metrically equivalent. (In other words, line-breaks and other text shapes will differ.) – Tommy Trussell Jun 05 '15 at 16:50
  • Have you tried http://askubuntu.com/a/546404/16395 ? Fonts f****up happens sometime to me too, and deleting that file is normally the solution... – Rmano Nov 14 '15 at 19:16
1

I have faced the same problem when replaced my HDD with SSD. Fonts started looking just like in your pictures! I solved this by disabling the Ubuntu user auto-login in a system. When I switch my laptop, I have to enter password to see desktop but fonts and themes are now looking correct.