Discussion:
Linux/Ubuntu: DejaVu Sans Mono GNU emacs/Xemacs
Uwe Brauer
2015-08-26 18:18:40 UTC
Permalink
Hello

In GNU emacs I can use the following setting


(custom-set-faces
'(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant
normal :weight normal :height 143 :width normal)))))

And Emacs uses the DejaVu font which is installed in my Ubuntu
distribution. I can also use the font in a xterm.

However when I run xfontsel I do not find this font and therefore do not
know how to use in it Xemacs.

Did anybody in a similar environment get this font to work in Xemacs?

Thanks
Uwe Brauer
Stephen J. Turnbull
2015-08-31 01:45:10 UTC
Permalink
Post by Uwe Brauer
(custom-set-faces
'(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant
normal :weight normal :height 143 :width normal)))))
AFAIK DejaVa is a TrueType or OpenType font, configured via
fontconfig. You need to have an XFT-enabled XEmacs. To use
fontconfig-style fonts, you have to use set-face-font most likely.

(set-face-font 'default "DejaVu Sans Mono-14.3")
Post by Uwe Brauer
However when I run xfontsel I do not find this font and therefore do not
know how to use in it Xemacs.
xfontsel doesn't know about fontconfig. Use fc-list to find out about
fontconfig fonts.
Raymond Toy
2015-08-31 04:28:42 UTC
Permalink
Uwe> Hello
Uwe> In GNU emacs I can use the following setting


Uwe> (custom-set-faces
Uwe> '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant
Uwe> normal :weight normal :height 143 :width normal)))))

Uwe> And Emacs uses the DejaVu font which is installed in my Ubuntu
Uwe> distribution. I can also use the font in a xterm.

Uwe> However when I run xfontsel I do not find this font and therefore do not
Uwe> know how to use in it Xemacs.

Uwe> Did anybody in a similar environment get this font to work in Xemacs?

This works for me on my OSX system to use this font:

(set-face-font 'default "Bitstream Vera Sans Mono-10")

I assume you could substitute "DevaVu Sans Mono-<size>" instead.

But as Stephen says, you need xemacs with xft support compiled in.

--
Ray

Loading...