1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00

(x-complement-fontset-spec): If a fontname doesn't conform to XLFD

format, try to get XLFD name by x-list-fonts.
This commit is contained in:
Kenichi Handa 2003-01-06 01:12:14 +00:00
parent ddbe25cd99
commit dcda246bb9

View file

@ -552,7 +552,9 @@ XLFD-FIELDS."
(dolist (elt fontlist)
(let ((name (cadr elt))
font-spec)
(when (string-match xlfd-style-regexp name)
(when (or (string-match xlfd-style-regexp name)
(and (setq name (car (x-list-fonts name nil nil 1)))
(string-match xlfd-style-regexp name)))
(setq font-spec (make-vector 6 nil))
(dotimes (i 6)
(aset font-spec i (match-string (1+ i) name)))