changeset 109032:d8720405694a

* font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
author Jan D. <jan.h.d@swipnet.se>
date Tue, 22 Jun 2010 08:42:00 +0200
parents a52944b44517
children d150a25a0eb9
files src/ChangeLog src/font.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Jun 21 19:26:46 2010 -0400
+++ b/src/ChangeLog	Tue Jun 22 08:42:00 2010 +0200
@@ -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
--- a/src/font.c	Mon Jun 21 19:26:46 2010 -0400
+++ b/src/font.c	Tue Jun 22 08:42:00 2010 +0200
@@ -1544,7 +1544,7 @@
 	      int size_found = 1;
 
 	      for (q = p + 1; *q && *q != ' '; q++)
-		if (! isdigit (*q))
+		if (! isdigit (*q) && *q != '.')
 		  {
 		    size_found = 0;
 		    break;