From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How to set the font of a region?
Date: Thu, 29 Jul 2004 08:51:40 -0600 [thread overview]
Message-ID: <41090EFC.7020304@yahoo.com> (raw)
In-Reply-To: 8765876iil.fsf@thalassa.informatimago.com
Pascal Bourguignon wrote:
> I tried this (on X, emacs 21.3.1):
>
> (let* ((default-font "-*-console-medium-r-normal-*-16-*-*-*-*-*-*-*")
> (default-face (gensym "face")))
> (make-face default-face)
> (set-face-font default-face default-font)
> (dolist (font font-list)
> (let ((face (gensym "face")))
> (make-face face)
> (set-face-font face font)
> (let ((start (point)))
> (insert font)
> (insert "\n")
> (facemenu-add-face 'default start (point))
> (facemenu-set-face default-face start (point)))
> (let ((start (point)))
> (insert "The lazy dog jumped over the fast fox! (let [it {be} and] say) no.more;\n")
> (facemenu-add-face 'default start (point))
> (facemenu-set-face face start (point))))))
>
> -->
>
> --international-medium-r-normal--15-150-72-72-m-90-iso8859-1
> The lazy dog jumped over the fast fox! (let [be {it} and] say) no.more;
> --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
> The lazy dog jumped over the fast fox! (let [be {it} and] say) no.more;
> --iris-medium-r-normal--12-120-72-72-m-80-iso8859-1
> The lazy dog jumped over the fast fox! (let [be {it} and] say) no.more;
> --iris-medium-r-normal--13-130-72-72-m-90-iso8859-1
> The lazy dog jumped over the fast fox! (let [be {it} and] say) no.more;
> ...
>
>
> but all the text generated keeps the same default font. Why my
> facemenu-set-face calls are without effect?
I don't know. Does it help to use an interned symbol for the face?
i.e. change (gensym "face") to (gentemp "face") after (require 'cl).
--
Kevin Rodgers
next prev parent reply other threads:[~2004-07-29 14:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-29 13:38 How to set the font of a region? Pascal Bourguignon
2004-07-29 14:51 ` Kevin Rodgers [this message]
2004-07-29 15:28 ` Pascal Bourguignon
2004-08-05 8:12 ` Oliver Scholz
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=41090EFC.7020304@yahoo.com \
--to=ihs_4664@yahoo.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.