[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with my Squeeze upgrade! (missing fonts)

On Thu, Feb 10, 2011 at 06:54:38AM -0800, Erin Brinkley wrote:
> Chris Jones <cjns1989@gmail.com> wrote:
> > Ah.. You have ‘emacs’ linked to some GUI (xemacs?) incarnation, right?
> No! Just GNU Emacs 23. Emacs has had support for using all X fonts, including truetype fonts, for a while now. (Do a google on "pretty emacs" to see some screenshots.)

If you're using the new Emacs(GTK rather than lucid), it's using
fontconfig/freetype for font selection, rather than the X core fonts,
so I think you would have problems even if xlsfonts can be made to
show it.  I think you probably want to look if it's in the output
of fc-list, and then use that font name.

As an example, from my .emacs:
  ;; 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 (:stipple nil :background "black" :foreground "grey" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 140 :width normal :family "dejavu-dejavu sans mono"))))
 '(cursor ((t (:background "#ffffff"))))
 '(tool-bar ((default (:foreground "black" :box (:line-width 1 :style released-button) :height 160 :family "DejaVu Sans")) (((type x w32 ns) (class color)) (:background "grey75"))))
 '(widget-single-line-field-face ((((class grayscale color) (background light)) (:box (:line-width 2 :color "yellow" :style released-button)))) t))

So the change here is that the "family" is "DejaVu Sans" or whatever
you like.  I think other mode configuration would also accept similar
face definitions, but I'm by no means an emacs expert.


  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: signature.asc
Description: Digital signature

Reply to: