You are not logged in.

#1 2012-05-19 11:42:40

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

[SOLVED] Fonts messed up

I recently installed a group of nearly a hundred fonts using gnome-font-viewer, and now I have a couple of minor issues with fonts in my system even after uninstalling them all. For example, LibreOffice menus and GUI fonts should be sans-serif but instead I see some fixed width font that was installed *before*. The same happens when I open a PDF with evince: another fixed width font appears where a sans-serif font should be. I tried to reinstall the involved packages and regenerate the font cache, but the font config tools seem a bit low level for me and I cannot figure out how to revert the situation.

I am using OpenBox with no desktop environment and no display manager.

Last edited by Juanlu001 (2012-05-24 08:58:03)


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

#2 2012-05-19 12:55:51

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Fonts messed up

If you're seeing fonts that you think you uninstalled, then you probably didn't uninstall them wink

A quick and dirty list:

fc-match -a

Offline

#3 2012-05-19 13:31:23

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

Re: [SOLVED] Fonts messed up

Well, the problem is not that I'm seeing fonts I uninstalled. I narrowed a bit the problem so I can put a clearer example.

The font I'm seeing is Nimbus Mono (monospace), which is part of the gsfonts package. I installed this package as a dependency of evince and other programs, but until I installed this bunch of fonts I didn't have this problem. When I opened certain PDFs, I used to see a sans font, but now I see this monospaced font. Both of them were installed before, and are installed still.


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

#4 2012-05-19 14:07:09

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

Re: [SOLVED] Fonts messed up

Right, I investigated a bit more and can now say exactly where the problem is. I solved the LibreOffice thing following this guide.

When I open a PDF with a text originally in Arial, I see a monospaced font. The problem disappears if I install ttf-ms-fonts, but this wasn't necessary before and I want it like that. I used to see Liberation Sans I guess, or any other free font previously installed on my system.


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

#5 2012-05-19 17:53:14

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Fonts messed up

Check with this:

$ fc-match Arial
arial.ttf: "Arial" "Normal"

If it shows the name of a monospaced font instead, then hopefully you can do your preferred font substitution with a fontconfig rule.

Offline

#6 2012-05-20 12:42:39

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

Re: [SOLVED] Fonts messed up

If I check with fc-match one by one all the fonts listed in the Properties menu of Evince, I always get the same:

$ fc-match ArialMT
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match ArialBlack
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match Arial-BoldMT
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match Wingdings-Regular
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match Tahoma
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match Tahoma,Bold
c059013l.pfb: "Century Schoolbook L" "Roman"
$ fc-match serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"
$ fc-match sans
DejaVuSans.ttf: "DejaVu Sans" "Book"

This doesn't make sense either as Century is a serif font. If I upload the PDF to Google Docs, open it with pdf.js or in another Linux distribution or in Windows sans fonts are used, which is the behaviour that used to happen before. I also tested another desktop PDF readers on my system and the problem persisted, even opening it with Inkscape. Any more ideas?


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

#7 2012-05-20 13:04:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Fonts messed up

You need to check your fontconfig rules.

Offline

#8 2012-05-24 08:57:50

Juanlu001
Member
From: Madrid, Spain, Europe
Registered: 2010-10-24
Posts: 26

Re: [SOLVED] Fonts messed up

Indeed! I activated 50-user.conf in /etc/fonts/conf.d, modified some rules from 30-metric.conf in my ~/.fonts.conf and now the problem is solved. Thank you very much!


Juan Luis Cano
Pybonacci - http://pybonacci.wordpress.com/ Blog about Python and Scientific Computing in Spanish

Offline

Board footer

Powered by FluxBB