Commit f73891b0 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(font_unparse_fcname): Pay attention to the case that

some of font property is a null string.
parent af7e13bd
......@@ -1324,7 +1324,7 @@ font_unparse_fcname (font, pixel_size, name, nbytes)
p += sprintf (p, ":foundry=%s",
for (i = 0; i < 3; i++)
if (! NILP (styles [i]))
if (SYMBOLP (styles[i]) && ! NILP (styles [i]))
p += sprintf (p, ":%s=%s", style_names[i],
SDATA (SYMBOL_NAME (styles [i])));
if (dpi >= 0)
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