Index: ftxgdef.c
===================================================================
RCS file: /cvs/gnome/pango/pango/opentype/ftxgdef.c,v
retrieving revision 1.8
diff -u -p -r1.8 ftxgdef.c
--- ftxgdef.c	11 Jan 2003 00:16:26 -0000	1.8
+++ ftxgdef.c	28 Jul 2003 22:20:24 -0000
@@ -1172,15 +1172,21 @@
 
       if ( flags & IGNORE_SPECIAL_MARKS )
       {
-        /* This is OpenType 1.2 */
-
-        if ( (flags & 0xFF00) != *property )
-          return TTO_Err_Not_Covered;
-      }
-      else {
-        if ( flags & *property )
+        /* The high byte of LookupFlags has the meaning
+	 * "ignore marks of attachment type different than
+	 * the attachment type specified."
+	 */
+	if ( *property & 0xFF00 ) /* Covered by MarkAttachClassDef */
+	{
+	  if ( ( flags & 0xFF00 ) != *property )
+	    return TTO_Err_Not_Covered;
+	}
+	else if ( *property == TTO_MARK ) /* Some other mark */
           return TTO_Err_Not_Covered;
       }
+
+      if ( flags & *property )
+	return TTO_Err_Not_Covered;
     }
 
     return TT_Err_Ok;
