diff lisp/font-menu.el @ 1102:30118fdc4f1f

[xemacs-hg @ 2002-11-12 03:52:23 by stephent] font-menu.el 21.4 synch <87y97zwiof.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Tue, 12 Nov 2002 03:52:24 +0000
parents 79c6ff3eef26
children a1e328407366
line wrap: on
line diff
--- a/lisp/font-menu.el	Mon Nov 11 22:53:14 2002 +0000
+++ b/lisp/font-menu.el	Tue Nov 12 03:52:24 2002 +0000
@@ -137,11 +137,13 @@
 
 (defvar font-menu-preferred-resolution
   (make-specifier-and-init 'generic '((global ((mswindows) . ":")
+					      ((gtk) . "*-*")
 					      ((x) . "*-*"))) t)
   "Preferred horizontal and vertical font menu resolution (e.g. \"75:75\").")
 
 (defvar font-menu-size-scaling
   (make-specifier-and-init 'integer '((global ((mswindows) . 1)
+					      ((gtk) . 10)
 					      ((x) . 10))) t)
   "Scale factor used in defining font sizes.")
 
@@ -284,7 +286,7 @@
 	 (font-data (font-menu-font-data 'default dcache))
 	 (from-family (aref font-data 1))
 	 (from-size   (aref font-data 2))
-	   (from-weight (aref font-data 3))
+	 (from-weight (aref font-data 3))
 	 (from-slant  (aref font-data 4))
   	 (face-list-to-change (delq 'default (face-list)))
 	 new-default-face-font)
@@ -315,7 +317,9 @@
 	(condition-case c
 	    (font-menu-change-face face
 				   from-family from-weight from-size
-				   family      weight      size)
+				   (or family from-family)
+				   (or weight from-weight)
+				   (or size from-size))
 	  (error
 	   (display-error c nil)
 	   (sit-for 1)))))
@@ -330,7 +334,7 @@
       ;; OK Let Customize do it.
       (custom-set-face-update-spec 'default
 				   (list (list 'type (device-type)))
-				   (list :family family
+				   (list :family (or family from-family)
 					 :size (concat
 						(int-to-string
 						 (/ (or size from-size)