(split_font_name): Handle `[...]' for the right
authorGerd Moellmann <gerd@gnu.org>
Tue, 15 May 2001 10:42:18 +0000 (10:42 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 15 May 2001 10:42:18 +0000 (10:42 +0000)
font name fields.

src/xfaces.c

index 68371ef..676f1d7 100644 (file)
@@ -2215,8 +2215,8 @@ split_font_name (f, font, numeric_p)
             indicated by tilde characters which we replace with
             `-' characters, here.  */
          if (*p == '['
-             && (i == XLFD_PIXEL_SIZE
-                 || i == XLFD_POINT_SIZE))
+             && (i - 1 == XLFD_PIXEL_SIZE
+                 || i - 1 == XLFD_POINT_SIZE))
            {
              char *start, *end;
              int j;