Fix MarkAttachmentType matching

Fixes issue reported by Khaled Hosny with his Hussaini Nastaleeq font
and sequences like those added in the previous commit.
pull/1/head
Behdad Esfahbod 13 years ago
parent 6de103547e
commit 559f706678
  1. 2
      src/hb-ot-layout.cc

@ -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;

Loading…
Cancel
Save