summaryrefslogtreecommitdiff
path: root/src/font.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-06-16 02:04:45 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-06-16 02:04:45 +0000
commit15666afba809354ecdcbae46cdeaea66bcd41a94 (patch)
tree5e9293e49501371b2c9ffa8f3360937de89bf4c1 /src/font.c
parentd6205aad737b97e47371d502e8271b4309b32684 (diff)
downloademacs-15666afba809354ecdcbae46cdeaea66bcd41a94.tar.gz
Tweak last change.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/font.c b/src/font.c
index ace61a3e450..3d4ab375c96 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1428,14 +1428,15 @@ font_parse_fcname (name, font)
Lisp_Object val;
int word_len, prop;
-#define PROP_MATCH(STR,N) ((word_len == N) && memcmp (p, STR, N) == 0)
-
for (q = p + 1; *q && *q != '=' && *q != ':'; q++);
word_len = q - p;
if (*q != '=')
{
/* Must be an enumerated value. */
val = font_intern_prop (p, q - p, 1);
+
+#define PROP_MATCH(STR,N) ((word_len == N) && memcmp (p, STR, N) == 0)
+
if (PROP_MATCH ("light", 5)
|| PROP_MATCH ("medium", 6)
|| PROP_MATCH ("demibold", 8)
@@ -1461,6 +1462,7 @@ font_parse_fcname (name, font)
bcopy (p, copy, word_len);
copy += word_len;
}
+#undef PROP_MATCH
}
else /* KEY=VAL pairs */
{
@@ -1492,7 +1494,6 @@ font_parse_fcname (name, font)
}
}
p = *q ? q + 1 : q;
-#undef PROP_MATCH
}
if (name != copy)
font_put_extra (font, QCfc_unknown_spec,