aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2011-01-26 19:45:30 -0500
committerChong Yidong2011-01-26 19:45:30 -0500
commit37d1c45d60c946768ff107bc68141e063dbe80be (patch)
treec1b2c94b8fae00aab2e00e64b47a0d3d86fec354 /src
parentca9c274ae72514a3b06b805456e656ff5ea7d58d (diff)
downloademacs-37d1c45d60c946768ff107bc68141e063dbe80be.tar.gz
emacs-37d1c45d60c946768ff107bc68141e063dbe80be.zip
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).
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));