Gnus development mailing list
 help / color / mirror / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: Customize testers wanted
Date: 23 Nov 1996 17:38:55 +0100	[thread overview]
Message-ID: <rjviawvk9s.fsf@babbage.dina.kvl.dk> (raw)
In-Reply-To: Jens Lautenbacher's message of 22 Nov 1996 20:47:59 +0100

Jens Lautenbacher <jens@lemcbed.lem.uni-karlsruhe.de> writes:

> But one should also be able to enter the family (Helevetica, Courier etc)

Try the patch below.  However adding *all* the possible attributes is
going to be crowded.

Index: custom.el
===================================================================
RCS file: /home/user_22/abraham/cvs/custom/custom.el,v
retrieving revision 1.22
diff -c -r1.22 custom.el
*** 1.22	1996/11/22 17:59:39
--- custom.el	1996/11/23 14:31:05
***************
*** 380,387 ****
        (set-font-size fontobj size)
        (apply 'set-face-font face fontobj args)))
  
    (nconc custom-face-attributes
! 	 '((:size (editable-field :format "Size: %v")
  		  set-face-font-size))))
  
  (defun custom-face-attribites-set (face frame &rest atts)
--- 380,396 ----
        (set-font-size fontobj size)
        (apply 'set-face-font face fontobj args)))
  
+   (defun set-face-font-family (face family &rest args)
+     "Set the font of FACE to FAMILY"
+     (let* ((font (apply 'face-font-name face args))
+ 	   (fontobj (font-create-object font)))
+       (set-font-family fontobj family)
+       (apply 'set-face-font face fontobj args)))
+ 
    (nconc custom-face-attributes
! 	 '((:family (editable-field :format "Family: %v") 
! 		    set-face-font-family)
! 	   (:size (editable-field :format "Size: %v")
  		  set-face-font-size))))
  
  (defun custom-face-attribites-set (face frame &rest atts)


  parent reply	other threads:[~1996-11-23 16:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-20 15:04 Per Abrahamsen
1996-11-20 20:03 ` Hrvoje Niksic
1996-11-20 21:22   ` Sudish Joseph
1996-11-20 21:51   ` Hrvoje Niksic
1996-11-20 22:25     ` William Perry
1996-11-21  1:36       ` Per Abrahamsen
1996-11-21  3:33         ` Hrvoje Niksic
1996-11-21 15:20           ` William Perry
1996-11-21 15:55             ` Per Abrahamsen
1996-11-21 18:18               ` William Perry
1996-11-22 17:29                 ` Per Abrahamsen
1996-11-22 19:47                   ` Jens Lautenbacher
1996-11-22 20:41                     ` William Perry
1996-11-23 16:38                     ` Per Abrahamsen [this message]
1996-11-23 11:15                   ` Hrvoje Niksic
1996-11-21 18:34               ` David Moore
1996-12-10 11:01 ` Ilya Zakharevich

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=rjviawvk9s.fsf@babbage.dina.kvl.dk \
    --to=abraham@dina.kvl.dk \
    /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.
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).