From: lee <lee@yagibdah.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Please explain X fonts?
Date: Sun, 29 Mar 2015 11:23:01 +0200 [thread overview]
Message-ID: <87zj6wqhsa.fsf@heimdali.yagibdah.de> (raw)
In-Reply-To: <mf4mf2$lkv$1@ger.gmane.org> (walt's message of "Fri, 27 Mar 2015 15:43:45 -0700")
walt <w41ter@gmail.com> writes:
> On 03/26/2015 07:15 PM, Walter Dnes wrote:
>
> <snip all questions I can't answer>
>
>> When I do a control-right-click on an xterm to manipulate fonts, the
>> xterm crashes.
>
> I had the same problem once. IIRC, strace showed me that xterm was trying
> to load the "default" font but there was no value set for "default".
>
> Somehow I managed to set the "default" font, but I can't remember how it
> did it. Maybe someone else can supply details?
My xterm shows that it's using the default font. I would guess that the
default might be set through .Xresources or through command line
parameters.
There's not much explanation here, the following just works for me:
AFAIK, the font names are case sensitive. For .Xresources:
xterm*FaceName: xft:Source Code Pro:pixelsize=14:style=Regular
You can also use 'xterm -fa "LucidaTypewriter-16"', see man xterm.
Support for truetype must be compiled into xterm (x11-terms/xterm
truetype). If you use fvwm with tt-fonts, also use 'truetype'.
As to fonts, I highly recommend "Source Code Pro" and "Source Sans Pro".
They finally resolved my long search for good fonts. Unfortunately,
they don't come with Gentoo. I copied them over from a Fedora
installation, so you might be able to extract them from their RPMs.
I haven't been able to create them from their sources, though. It
requires some special program which didn't work. Maybe someone knows
how to do that?
And for emacs, in .Xressources:
Emacs.FontBackend: xft
and in .emacs:
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "green" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "adobe" :family "Source Code Pro"))))
'(font-lock-comment-delimiter-face ((t (:inherit font-lock-comment-face :foreground "deep sky blue"))))
'(font-lock-comment-face ((t (:foreground "goldenrod"))))
'(font-lock-warning-face ((t (:inherit error :foreground "DarkSlateGray1")))))
with:
app-editors/emacs X athena Xaw3d xft -gtk -motif tookit-scroll-bars gif imagemagick jpeg png svg tiff xpm gnutls gzip-el inotify libxml2 wide-int
To show which fonts are installed, there's 'fc-list'. When you want
user specific fonts, put them into ~/.config/fonts/ and run 'fc-cache'.
--
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us. Finally, this fear has become reasonable.
next prev parent reply other threads:[~2015-03-29 10:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 2:15 [gentoo-user] Please explain X fonts? Walter Dnes
2015-03-27 3:38 ` Matti Nykyri
2015-03-27 22:43 ` [gentoo-user] " walt
2015-03-29 9:23 ` lee [this message]
2015-03-29 20:27 ` Urs Schütz
2015-04-02 0:03 ` lee
2015-04-02 20:48 ` Urs Schütz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zj6wqhsa.fsf@heimdali.yagibdah.de \
--to=lee@yagibdah.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox