diff src/font.c @ 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 f1ee344e1eb5
children 2bc9a0c04c87 c82f3023b7f2
line wrap: on
line diff
--- 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;