Gentoo Archives: gentoo-user

From: Matti Nykyri <matti.nykyri@×××.fi>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Please explain X fonts?
Date: Fri, 27 Mar 2015 03:38:51
Message-Id: 792DC435-0FA4-4C5E-A54E-389D3748371A@iki.fi
In Reply to: [gentoo-user] Please explain X fonts? by Walter Dnes
1 > On Mar 27, 2015, at 4:15, "Walter Dnes" <waltdnes@××××××××.org> wrote:
2 >
3 > #!/bin/bash
4 > [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources /usr/bin/xterm -bg black -fg cyan -geometry 50x9+0+0 -fn lucidasanstypewriter-12 &
5 > /usr/bin/xterm -bg black -fg cyan -geometry +0+0 -fn lucidasanstypewriter-12 &
6 > exec /usr/bin/icewm > ~/.icewm.log 2>&1
7 >
8 > Some time ago, somebody decided to deprecate iso8859-1 fonts. And
9 > when I run startx, the text console comes up with
10
11 Why not use some new TTF? Put the config to ~/Xdefaults:
12 XTerm*faceName: Liberation Mono XTerm*faceSize: 12
13
14 > xterms come up with some dinky little font. It's bad enough on a 24
15 > in 1920x1080 monitor. On an 11" 1366x768 netbook, it's unreadable.
16 > When I do a control-right-click on an xterm to manipulate fonts, the
17 > xterm crashes.
18
19 X server abjusts font sizes according to the DPI value. The DPI value it calculates might be wrong though: bad EDID most likely. Set the DPI value in you Xorg.conf file to make the fonts in constant size.
20
21 > One of the nice things about having multiple machines, is that I still
22 > had another machine with the old fonts. For a few years, I've preserved
23 > a copy of /usr/share/fonts from that machine as fonts_do_not_delete. So
24 > each time fonts are "updated" on my machines, I rename /usr/share/fonts
25 > to /usr/share/fonts.borken and copy the fonts_do_not_delete directory as
26 > /usr/share/fonts.
27
28 CONFIG_PROTECT the directory or make the fonts immutable so they don't get removed. chattr +i
29
30 > OK, so whats supposed to be "the right way" to get working xterms with
31 > lucidasanstypewriter-12?
32
33 --
34 -Matti