aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/font.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bbfd9592cf1..c74732b4210 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-01-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * font.c (font_parse_fcname): Require GTK-style font sizes to
4 occur at the end of the font string (Bug#7853).
5
12011-01-26 Chong Yidong <cyd@stupidchicken.com> 62011-01-26 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * font.c (font_parse_fcname): Fix typo in string length. 8 * font.c (font_parse_fcname): Fix typo in string length.
diff --git a/src/font.c b/src/font.c
index 96c043626f2..ebf0b547b9f 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1549,7 +1549,8 @@ font_parse_fcname (name, font)
1549 size_found = 0; 1549 size_found = 0;
1550 break; 1550 break;
1551 } 1551 }
1552 if (size_found) 1552 /* GTK font sizes must occur at the end. */
1553 if (size_found && *q == '\0')
1553 { 1554 {
1554 double point_size = strtod (p, &q); 1555 double point_size = strtod (p, &q);
1555 ASET (font, FONT_SIZE_INDEX, make_float (point_size)); 1556 ASET (font, FONT_SIZE_INDEX, make_float (point_size));