You are not logged in.

#1 2010-09-13 13:14:26

thiago
Member
Registered: 2010-09-10
Posts: 8

Gnome fonts change appearance when I install ttf-dejavu fonts

Hi

  When I install the ttf-dejavu font package(as a consequence of installing the program 'devede'  gnome automatically changes the appearance of all fonts in my desktop. As an example, look at what my gnome terminal is before I install this package :

Gnome font without ttf

  Here is what it looks like after I install the 'devede' package :

Gnome font with ttf

  The gnome terminal font is set to Monospace 12 before and after installing the package, but it makes X render the fonts in a different way(Not only on gnome terminal but on the entire desktop). The only reason I'm installing this ttf font package is because devede needs it, but surely there must be way to continue using the old font looks. Any help is appreciated.

Last edited by thiago (2010-09-13 13:15:11)

Offline

#2 2010-09-13 13:35:59

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

Monospace is just a placeholder name for the system's default monospace font family.  Deja Vu is configured to be the default monospace font according to Fontconfig (the system-wide fontconfig files are in /etc) so when you install it, it appears whenever 'monospace' is specified.

You can either specify a font by name for your terminal, or you can change the system-wide default monospace font to something else.  The former is probably less painful.


thayer williams ~ cinderwick.ca

Offline

#3 2010-09-13 13:38:21

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

"Monospace" is not usually a font but is a generic name and get replaced by some monospaced font, what font depends on you configs (/etc/fonts and ~/.fonts.conf) and the available of fonts. The font of the first screen shot is Courier New. So choose Courier New in place of "Monospace" in the gnome-terminal preferences.

EDIT: thayer beat me =[

Last edited by kazuo (2010-09-13 13:39:12)

Offline

#4 2010-09-13 13:39:42

patlkli
Member
From: Landshut, Germany
Registered: 2010-07-11
Posts: 10
Website

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

This behaviour is normal. The Monospace font itself is AFAIK only a link to a certain other monospace font.
The installation of the ttf-dejavu package causes DejaVu Sans Mono to replace the previously used FreeMono (it at least seems to be the one in your first screenshot) as the default Monospace font.

I think, commenting out (with <!-- ... -->) the "Generic name aliasing" part at the end of /etc/fonts/conf.avail/57-dejavu-sans-mono.conf should cause FreeMono to be the Monospace font again.

Last edited by patlkli (2010-09-13 13:40:47)

Offline

#5 2010-09-13 13:51:00

thiago
Member
Registered: 2010-09-10
Posts: 8

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

Ok I got it, is there any way to stop ttf-dejavu from replacing my current system fonts(I dont want it to replace any font, I'm just installing it as a dependency)?

Last edited by thiago (2010-09-13 14:04:07)

Offline

#6 2010-12-28 20:12:33

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

Hopefully I'm squeezing this in before zombification!  You can add something like this to ~/.fonts.conf (or /etc/fonts/local.conf to override system-wide defaults) to change the default generics:

<alias>
    <family>monospace</family>
    <prefer>
        <family>Courier New</family>
        <family>Andale Mono</family>
        <family>DejaVu Sans Mono</family>
    </prefer>
</alias>

<alias>
    <family>sans-serif</family>
    <prefer>
        <family>Arial</family>
        <family>Tahoma</family>
    </prefer>
</alias>

<alias>
    <family>serif</family>
    <prefer>
        <family>Times New Roman</family>
        <family>Georgia</family>
    </prefer>
</alias>

Edit: Actually I'm not sure that this _will_ work on its own.  You might need to specifically override Bitstream/Dejavu fonts.

Last edited by thayer (2010-12-28 20:16:17)


thayer williams ~ cinderwick.ca

Offline

#7 2010-12-29 01:31:59

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

Re: Gnome fonts change appearance when I install ttf-dejavu fonts

And the easy way to test:

$ fc-match "monospace"

Offline

Board footer

Powered by FluxBB