help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: listing available font and selecting one


From: Emanuel Berg
Subject: Re: listing available font and selecting one
Date: Tue, 22 Jul 2014 23:37:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

chano <no@spam.com> writes:

> how can I list available fonts?

Try evaluate this:

(face-list)

Otherwise `M-x apropos face'.

I don't know your exact situation, but some general
thoughts:

Often it is better to change the attributes of the
faces. The faces are most of the time (but not always!)
set up in the way to express some function or
meaning. Like if something is dangerous it is not
assigned the `red-bold-face', but `the dangerous-face'
(made up examples). If you think that face doesn't look
scary enough, of course it should still be the
dangerous-face, only you should change its attributes.

You can find out what face is at point with this defun:

(defun what-face (pos)
  (interactive "d")
  (let ((face (or (get-char-property (point) 'read-face-name)
                  (get-char-property (point) 'face))))
    (if face (message " Face: %s" face)
      (message " No face at %d." pos) )))

-- 
underground experts united


reply via email to

[Prev in Thread] Current Thread [Next in Thread]