Fix MarkAttachmentType matching
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 17 Jul 2012 02:43:17 +0000 (22:43 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 17 Jul 2012 02:46:52 +0000 (22:46 -0400)
Fixes issue reported by Khaled Hosny with his Hussaini Nastaleeq font
and sequences like those added in the previous commit.

src/hb-ot-layout.cc

index 7b48fa6..10811d0 100644 (file)
@@ -123,7 +123,7 @@ _hb_ot_layout_match_properties_mark (hb_face_t      *face,
    * "ignore marks of attachment type different than
    * the attachment type specified."
    */
-  if (lookup_props & LookupFlag::MarkAttachmentType && glyph_props & LookupFlag::MarkAttachmentType)
+  if (lookup_props & LookupFlag::MarkAttachmentType)
     return (lookup_props & LookupFlag::MarkAttachmentType) == (glyph_props & LookupFlag::MarkAttachmentType);
 
   return true;