# HG changeset patch # User Kenichi Handa # Date 899440762 0 # Node ID 160c346d6192687d66af7fde607bd5f5a3a0dee5 # Parent ea5a8ef23b45ae71b9545a7d2940f17db647f4a4 (x-create-frame-with-faces): If an ASCII font is specified in PARAMETERS, create a fontset from the font and use it for the new frame. diff -r ea5a8ef23b45 -r 160c346d6192 lisp/faces.el --- a/lisp/faces.el Fri Jul 03 04:39:22 1998 +0000 +++ b/lisp/faces.el Fri Jul 03 04:39:22 1998 +0000 @@ -1345,6 +1345,19 @@ ;; Put the geometry parameters at the end. ;; Copy default-frame-alist so that they go after it. (setq parameters (append parameters default-frame-alist parsed))))) + + (if default-enable-multibyte-characters + ;; If an ASCII font is specified in PARAMETERS, we try to create + ;; a fontset from it, and use it for the new frame. + (condition-case nil + (let ((font (cdr (assq 'font parameters)))) + (if (and font + (not (query-fontset font))) + (setq parameters + (cons (cons 'font (create-fontset-from-ascii-font font)) + parameters)))) + (error nil))) + (let (frame) (if (null global-face-data) (progn