Commit 37d1c45d authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix GTK font name parsing to allow numbers in names (Bug#7853).

A better fix is already in the trunk.

* src/font.c (font_parse_fcname): Require GTK-style font sizes to
occur at the end of the font string (Bug#7853).
parent ca9c274a
2011-01-27 Chong Yidong <cyd@stupidchicken.com>
* font.c (font_parse_fcname): Require GTK-style font sizes to
occur at the end of the font string (Bug#7853).
2011-01-26 Chong Yidong <cyd@stupidchicken.com>
* font.c (font_parse_fcname): Fix typo in string length.
......
......@@ -1549,7 +1549,8 @@ font_parse_fcname (name, font)
size_found = 0;
break;
}
if (size_found)
/* GTK font sizes must occur at the end. */
if (size_found && *q == '\0')
{
double point_size = strtod (p, &q);
ASET (font, FONT_SIZE_INDEX, make_float (point_size));
......
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