Gnus development mailing list
 help / color / mirror / Atom feed
* XEmacs & buffer-local fonts
@ 1997-01-24 14:07 Lars Magne Ingebrigtsen
  1997-01-24 15:16 ` William M. Perry
  1997-01-24 21:04 ` The article buffer, and proportional fonts Steinar Bang
  0 siblings, 2 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-01-24 14:07 UTC (permalink / raw)


I just decided that I wanted the article buffer to use a proportional
font.  I thought that would be a breeze, but after reading the XEmacs
manual some, it doesn't seem like a simple thing to do.  I must be
overlooking something.

So I did this, and it works, but it's slow.  So...  What's the *real*
way of doing something like this?

(defun lars-xmas-set-faces-font ()
  "Set the font of all faces in the buffer to one font."
  (let ((faces (face-list))
	(font "-adobe-new century schoolbook-medium-r-normal--14-140-75-75-p-82-iso8859-1")
	face props)
    (while (setq face (pop faces))
      (setq props (font-properties (face-font face)))
      (set-face-font face font (current-buffer))
      (when (equal (downcase (or (cdr (assq 'WEIGHT_NAME props)) "")) "bold")
	(make-face-bold face (current-buffer)))
      (when (equal (downcase (or (cdr (assq 'SLANT props)) "")) "i")
	(make-face-italic face (current-buffer))))))

(when (string-match "XEmacs" emacs-version)
  (add-hook 'gnus-article-mode-hook 'lars-xmas-set-faces-font))

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Ingebrigtsen


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

* Re: XEmacs & buffer-local fonts
  1997-01-24 14:07 XEmacs & buffer-local fonts Lars Magne Ingebrigtsen
@ 1997-01-24 15:16 ` William M. Perry
  1997-01-24 21:04 ` The article buffer, and proportional fonts Steinar Bang
  1 sibling, 0 replies; 6+ messages in thread
From: William M. Perry @ 1997-01-24 15:16 UTC (permalink / raw)
  Cc: ding

Lars Magne Ingebrigtsen writes:

>I just decided that I wanted the article buffer to use a proportional
>font.  I thought that would be a breeze, but after reading the XEmacs
>manual some, it doesn't seem like a simple thing to do.  I must be
>overlooking something.
>
>So I did this, and it works, but it's slow.  So...  What's the *real*
>way of doing something like this?
>
>(defun lars-xmas-set-faces-font ()
>  "Set the font of all faces in the buffer to one font."
>  (let ((faces (face-list))
>	(font "-adobe-new century schoolbook-medium-r-normal--14-140-75-75-p-82-iso8859-1")
>	face props)
>    (while (setq face (pop faces))
>      (setq props (font-properties (face-font face)))
>      (set-face-font face font (current-buffer))
>      (when (equal (downcase (or (cdr (assq 'WEIGHT_NAME props)) "")) "bold")
>	(make-face-bold face (current-buffer)))
>      (when (equal (downcase (or (cdr (assq 'SLANT props)) "")) "i")
>	(make-face-italic face (current-buffer))))))
>
>(when (string-match "XEmacs" emacs-version)
>  (add-hook 'gnus-article-mode-hook 'lars-xmas-set-faces-font))

  This is why we need the 'font.el' package I wrote converted into C.  For
this, you'd just have:

(set-font-property (face-font 'default) 'family "serif" (current-buffer))

  Ok, anybody want to volunteer? :)

-Bill P.


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

* The article buffer, and proportional fonts
  1997-01-24 14:07 XEmacs & buffer-local fonts Lars Magne Ingebrigtsen
  1997-01-24 15:16 ` William M. Perry
@ 1997-01-24 21:04 ` Steinar Bang
  1997-01-25  2:56   ` Steven L Baur
  1997-01-25  7:38   ` Lars Magne Ingebrigtsen
  1 sibling, 2 replies; 6+ messages in thread
From: Steinar Bang @ 1997-01-24 21:04 UTC (permalink / raw)


>>>>> Lars Magne Ingebrigtsen <larsi@ifi.uio.no>:

> I just decided that I wanted the article buffer to use a
> proportional font.

What a terrible netscapeish/microsoftian idea for messages without
MIME headers, or messages with MIME type text/plain.

An excellent idea, however, for messages with MIME type
text/enriched (or other text/* subtypes yet to be defined...)


- Steinar


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

* Re: The article buffer, and proportional fonts
  1997-01-24 21:04 ` The article buffer, and proportional fonts Steinar Bang
@ 1997-01-25  2:56   ` Steven L Baur
  1997-01-25  7:38   ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Steven L Baur @ 1997-01-25  2:56 UTC (permalink / raw)


Steinar Bang writes:

>>>>>> Lars Magne Ingebrigtsen <larsi@ifi.uio.no>:
>> I just decided that I wanted the article buffer to use a
>> proportional font.

> What a terrible netscapeish/microsoftian idea for messages without
> MIME headers, or messages with MIME type text/plain.

You misspelled netscapeish/microsoftian/XEmacsian ;-).  I thought it
looked pretty cool, but it was slooow ...

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
Real men aren't afraid to use chains on icy roads.


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

* Re: The article buffer, and proportional fonts
  1997-01-24 21:04 ` The article buffer, and proportional fonts Steinar Bang
  1997-01-25  2:56   ` Steven L Baur
@ 1997-01-25  7:38   ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-01-25  7:38 UTC (permalink / raw)


Steinar Bang <sb@metis.no> writes:

> >>>>> Lars Magne Ingebrigtsen <larsi@ifi.uio.no>:
> 
> > I just decided that I wanted the article buffer to use a
> > proportional font.
> 
> What a terrible netscapeish/microsoftian idea for messages without
> MIME headers, or messages with MIME type text/plain.

No, it looks reeel pretty, like.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Ingebrigtsen


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

* Re: The article buffer, and proportional fonts
       [not found] <"m2d8uu4g43.fsf"@altair.xemacs.org>
@ 1997-01-25  3:34 ` Andrew J Cosgriff
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew J Cosgriff @ 1997-01-25  3:34 UTC (permalink / raw)



Steven L Baur <steve@miranova.com> wrote:
>Steinar Bang writes:
>>>>>>> Lars Magne Ingebrigtsen <larsi@ifi.uio.no>:
>>> I just decided that I wanted the article buffer to use a
>>> proportional font.
>
>> What a terrible netscapeish/microsoftian idea for messages without
>> MIME headers, or messages with MIME type text/plain.
>
>You misspelled netscapeish/microsoftian/XEmacsian ;-).  I thought it
>looked pretty cool, but it was slooow ...

slow ? *shrug*  It's been so long since I ran gnus in fixed-width
that i've absolutely no idea how slow it is in comparison.

Come to think of it, i've never run gnus in a fixed-width font.

My whole reason for running XEmacs (initially) was so i could use proportional
fonts, before netscape existed :PP

My default font (for everything) is palatino - if I really have to use a
fixed-width font, then I've got a small hack that I put in dired mode, and
C mode (the latter was more proof-of-concept than anything), that fiddles the
font-lock-* fonts to use a fixed width font in that buffer only.

Yay for proportional fonts (and XEmacs) ! :)

Andrew
-- 
 - Andrew J. Cosgriff -                  ajc@bing.wattle.id.au    (PGP/MIME ok)
  +61 3 9905 1165 (bh)                   http://www-personal.monash.edu.au/~ajc
    "I wrote a poem on a dog biscuit, but your dog refused to look at it."
                         (Galaxie 500, Fourth of July)


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

end of thread, other threads:[~1997-01-25  7:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-24 14:07 XEmacs & buffer-local fonts Lars Magne Ingebrigtsen
1997-01-24 15:16 ` William M. Perry
1997-01-24 21:04 ` The article buffer, and proportional fonts Steinar Bang
1997-01-25  2:56   ` Steven L Baur
1997-01-25  7:38   ` Lars Magne Ingebrigtsen
     [not found] <"m2d8uu4g43.fsf"@altair.xemacs.org>
1997-01-25  3:34 ` Andrew J Cosgriff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).