Commit 4bd4e5bc authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(create-default-fontset): New function.

(create-fontset-from-x-resource): Use display-warning instead of
parent 8458d4c1
......@@ -579,6 +579,16 @@
(set-fontset-font "fontset-default" '(#xE000 . #xF8FF) nil))
(defun create-default-fontset ()
"Create the default fontset.
Internal use only. Should be called at startup time."
(condition-case err
(error (display-warning
(format "Creation of the default fontsets failed: %s" err)
;; These are the registered registries/encodings from
;; 2001/06/01
......@@ -1049,8 +1059,11 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(while (setq fontset-spec (x-get-resource (format "fontset-%d" idx)
(format "Fontset-%d" idx)))
(condition-case nil
(create-fontset-from-fontset-spec fontset-spec t 'noerror)
(error (message "Fontset-%d: invalid specification in X resource" idx)))
(create-fontset-from-fontset-spec fontset-spec t)
(error (display-warning
(format "Fontset-%d: invalid specification in X resource" idx)
(setq idx (1+ idx)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment