aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/term/w32-win.el29
1 files changed, 2 insertions, 27 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index 203a41b1d9c..7cffa61930a 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -1094,38 +1094,13 @@ European languages which are distributed with Windows as
1094See the documentation of `create-fontset-from-fontset-spec' for the format.") 1094See the documentation of `create-fontset-from-fontset-spec' for the format.")
1095 1095
1096;; Conditional on new-fontset so bootstrapping works on non-GUI compiles 1096;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
1097(if (fboundp 'new-fontset) 1097(when (fboundp 'new-fontset)
1098 (progn
1099 ;; Setup the default fontset. 1098 ;; Setup the default fontset.
1100 (setup-default-fontset) 1099 (setup-default-fontset)
1101 ;; Create the standard fontset. 1100 ;; Create the standard fontset.
1102 (create-fontset-from-fontset-spec w32-standard-fontset-spec t) 1101 (create-fontset-from-fontset-spec w32-standard-fontset-spec t)
1103 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1,...). 1102 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1,...).
1104 (create-fontset-from-x-resource) 1103 (create-fontset-from-x-resource))
1105 ;; Try to create a fontset from a font specification which comes
1106 ;; from initial-frame-alist, default-frame-alist, or X resource.
1107 ;; A font specification in command line argument (i.e. -fn XXXX)
1108 ;; should be already in default-frame-alist as a `font'
1109 ;; parameter. However, any font specifications in site-start
1110 ;; library, user's init file (.emacs), and default.el are not
1111 ;; yet handled here.
1112
1113 (let ((font (or (cdr (assq 'font initial-frame-alist))
1114 (cdr (assq 'font default-frame-alist))
1115 (x-get-resource "font" "Font")))
1116 xlfd-fields resolved-name)
1117 (if (and font
1118 (not (query-fontset font))
1119 (setq resolved-name (x-resolve-font-name font))
1120 (setq xlfd-fields (x-decompose-font-name font)))
1121 (if (string= "fontset"
1122 (aref xlfd-fields xlfd-regexp-registry-subnum))
1123 (new-fontset font
1124 (x-complement-fontset-spec xlfd-fields nil))
1125 ;; Create a fontset from FONT. The fontset name is
1126 ;; generated from FONT.
1127 (create-fontset-from-ascii-font font
1128 resolved-name "startup"))))))
1129 1104
1130;; Apply a geometry resource to the initial frame. Put it at the end 1105;; Apply a geometry resource to the initial frame. Put it at the end
1131;; of the alist, so that anything specified on the command line takes 1106;; of the alist, so that anything specified on the command line takes