Commit f3b9e479 authored by Jason Rumney's avatar Jason Rumney
Browse files

(font_unparse_fcname): Increase len when style is a symbol.

parent c7218216
2008-03-01 Jason Rumney <jasonr@gnu.org>
* font.c (font_unparse_fcname): Increase len when style is a symbol.
2008-03-01 Jan Dj$(Q)Z(Brv <jan.h.d@swipnet.se>
* xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
......
......@@ -1462,9 +1462,10 @@ font_unparse_fcname (font, pixel_size, name, nbytes)
if (INTEGERP (val))
{
val = prop_numeric_to_name (i, XINT (val));
len += (strlen (style_names[i - FONT_WEIGHT_INDEX])
+ 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */
}
if (SYMBOLP (val) && ! NILP (val))
len += (strlen (style_names[i - FONT_WEIGHT_INDEX])
+ 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */
styles[i - FONT_WEIGHT_INDEX] = val;
}
......
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