comparison 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
comparison
equal deleted inserted replaced
109031:a52944b44517 109032:d8720405694a
1542 if (isdigit (*p)) 1542 if (isdigit (*p))
1543 { 1543 {
1544 int size_found = 1; 1544 int size_found = 1;
1545 1545
1546 for (q = p + 1; *q && *q != ' '; q++) 1546 for (q = p + 1; *q && *q != ' '; q++)
1547 if (! isdigit (*q)) 1547 if (! isdigit (*q) && *q != '.')
1548 { 1548 {
1549 size_found = 0; 1549 size_found = 0;
1550 break; 1550 break;
1551 } 1551 }
1552 if (size_found) 1552 if (size_found)