font.c (Ffont_spec): Signal an error for an invalid font name.
This commit is contained in:
parent
2c149f93b4
commit
3c542890fe
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-06-18 Kenichi Handa <handa@gnu.org>
|
||||
|
||||
* font.c (Ffont_spec): Signal an error for an invalid font name.
|
||||
|
||||
2013-06-17 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Move functions from lisp.h to individual modules when possible.
|
||||
|
|
|
@ -3863,7 +3863,8 @@ usage: (font-spec ARGS...) */)
|
|||
if (EQ (key, QCname))
|
||||
{
|
||||
CHECK_STRING (val);
|
||||
font_parse_name (SSDATA (val), SBYTES (val), spec);
|
||||
if (font_parse_name (SSDATA (val), SBYTES (val), spec) < 0)
|
||||
error ("Invalid font name: %s", SSDATA (val));
|
||||
font_put_extra (spec, key, val);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue