* font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 06:42:00 +0000 (08:42 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 06:42:00 +0000 (08:42 +0200)
src/ChangeLog
src/font.c

index 7405d92..121d065 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-22  Keith Packard <keithp@keithp.com> (tiny change)
+
+       * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
+
 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (try_scrolling): When scroll-conservatively is set to
index e07dbc5..f9c2381 100644 (file)
@@ -1544,7 +1544,7 @@ font_parse_fcname (name, font)
              int size_found = 1;
 
              for (q = p + 1; *q && *q != ' '; q++)
-               if (! isdigit (*q))
+               if (! isdigit (*q) && *q != '.')
                  {
                    size_found = 0;
                    break;