all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs wont show multiple fonts
@ 2014-07-29 22:37 Óscar Fuentes
  2014-07-29 22:49 ` Óscar Fuentes
       [not found] ` <mailman.6253.1406674193.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Óscar Fuentes @ 2014-07-29 22:37 UTC (permalink / raw)
  To: help-gnu-emacs

The code snippet below was copied from

http://www.emacswiki.org/emacs/GoodFonts#toc15

Evaluating it on *scratch* produces a long list of output, but all lines
use the same font, namely the default one. I was expecting to see each
line rendered with the corresponding font.

Tried on

GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-07-29

and

GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-05-07


(dolist (font-family (font-family-list))
  (let ((str font-family))
    (insert (propertize (concat "The quick brown fox jumps over the lazy dog ("
                         str ")")
                        'face `((:family ,font-family))))
    (newline)))




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs wont show multiple fonts
  2014-07-29 22:37 Emacs wont show multiple fonts Óscar Fuentes
@ 2014-07-29 22:49 ` Óscar Fuentes
  2014-07-30  3:50   ` Eli Zaretskii
       [not found] ` <mailman.6253.1406674193.1147.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 4+ messages in thread
From: Óscar Fuentes @ 2014-07-29 22:49 UTC (permalink / raw)
  To: help-gnu-emacs

Óscar Fuentes <ofv@wanadoo.es> writes:

> Evaluating it on *scratch* produces a long list of output, but all lines
> use the same font, namely the default one. I was expecting to see each
> line rendered with the corresponding font.

For some reason it doesn't work on *scratch*, but works on an ordinary
text buffer.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs wont show multiple fonts
       [not found] ` <mailman.6253.1406674193.1147.help-gnu-emacs@gnu.org>
@ 2014-07-29 23:42   ` Emanuel Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Emanuel Berg @ 2014-07-29 23:42 UTC (permalink / raw)
  To: help-gnu-emacs

Óscar Fuentes <ofv@wanadoo.es> writes:

>> Evaluating it on *scratch* produces a long list of
>> output, but all lines use the same font, namely the
>> default one. I was expecting to see each line
>> rendered with the corresponding font.
>
> For some reason it doesn't work on *scratch*, but
> works on an ordinary text buffer.

Perhaps evaluating it in *scratch* won't work because
that is in some other Lispic mode which isn't the same
as elsewhere? Just a theory, but try it.

(setq initial-major-mode 'emacs-lisp-mode)

-- 
underground experts united


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs wont show multiple fonts
  2014-07-29 22:49 ` Óscar Fuentes
@ 2014-07-30  3:50   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2014-07-30  3:50 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Wed, 30 Jul 2014 00:49:25 +0200
> 
> Óscar Fuentes <ofv@wanadoo.es> writes:
> 
> > Evaluating it on *scratch* produces a long list of output, but all lines
> > use the same font, namely the default one. I was expecting to see each
> > line rendered with the corresponding font.
> 
> For some reason it doesn't work on *scratch*, but works on an ordinary
> text buffer.

Turn off font-lock, and it will work in *scratch* as well.  Font Lock
overrides your faces by its own.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-30  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29 22:37 Emacs wont show multiple fonts Óscar Fuentes
2014-07-29 22:49 ` Óscar Fuentes
2014-07-30  3:50   ` Eli Zaretskii
     [not found] ` <mailman.6253.1406674193.1147.help-gnu-emacs@gnu.org>
2014-07-29 23:42   ` Emanuel Berg

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.