Be more tolerant to fonts named "Foobar-12"
commit7d5a7a43f1f6630b269fa7f7dc13e9c80181a709
authorEli Zaretskii <eliz@gnu.org>
Wed, 1 Jul 2015 16:33:56 +0000 (1 19:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 1 Jul 2015 16:33:56 +0000 (1 19:33 +0300)
tree3d4a697f78722d306ed69ca212d21fdcd6bf2e75
parent4c66103fb3ee13c39ba53659f00b2c569307f3e8
Be more tolerant to fonts named "Foobar-12"

* src/frame.c (x_set_font): If font_spec_from_name returns nil,
don't barf; instead, request a new fontset to be generated.  This
avoids unnecessarily rejecting fonts named against XLFD rules.  See
http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html,
for the description of the original problem.

* lisp/faces.el (set-face-attribute): Don't be fooled too easily
by a hyphen in a font's name.
lisp/faces.el
src/frame.c