summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 7c1c79b6..5051604c 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -20,7 +20,6 @@
*/
#include <stdlib.h>
-#include <ctype.h>
#include <math.h>
#include <string.h>
@@ -763,11 +762,11 @@ getword (const char *str, const char *last, size_t *wordlen)
{
const char *result;
- while (last > str && isspace (*(last - 1)))
+ while (last > str && g_ascii_isspace (*(last - 1)))
last--;
result = last;
- while (result > str && !isspace (*(result - 1)))
+ while (result > str && !g_ascii_isspace (*(result - 1)))
result--;
*wordlen = last - result;
@@ -855,16 +854,16 @@ pango_font_description_from_string (const char *str)
/* Remainder (str => p) is family list. Trim off trailing commas and leading and trailing white space
*/
- while (last > str && isspace (*(last - 1)))
+ while (last > str && g_ascii_isspace (*(last - 1)))
last--;
if (last > str && *(last - 1) == ',')
last--;
- while (last > str && isspace (*(last - 1)))
+ while (last > str && g_ascii_isspace (*(last - 1)))
last--;
- while (isspace (*str))
+ while (g_ascii_isspace (*str))
str++;
if (str != last)