Commit 3c542890 authored by Kenichi Handa's avatar Kenichi Handa

font.c (Ffont_spec): Signal an error for an invalid font name.

parent 2c149f93
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
......
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