[HB] Fix lookup_flag ignoring
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 29 Oct 2009 07:00:44 +0000 (03:00 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 29 Oct 2009 07:00:44 +0000 (03:00 -0400)
Reported by Keith Stribley on HarfBuzz list.

pango/opentype/hb-ot-layout-common-private.hh
pango/opentype/hb-ot-layout.cc

index bd43975..a1e625d 100644 (file)
@@ -244,6 +244,7 @@ struct LookupFlag : USHORT
     IgnoreBaseGlyphs   = 0x0002u,
     IgnoreLigatures    = 0x0004u,
     IgnoreMarks                = 0x0008u,
+    IgnoreFlags                = 0x000Eu,
     UseMarkFilteringSet        = 0x0010u,
     Reserved           = 0x00E0u,
     MarkAttachmentType = 0xFF00u
index 3b6b8da..67b2b9a 100644 (file)
@@ -148,7 +148,7 @@ _hb_ot_layout_check_glyph_property (hb_face_t    *face,
   /* Not covered, if, for example, glyph class is ligature and
    * lookup_flags includes LookupFlags::IgnoreLigatures
    */
-  if (property & lookup_flags)
+  if (property & lookup_flags & LookupFlag::IgnoreFlags)
     return false;
 
   if (property & HB_OT_LAYOUT_GLYPH_CLASS_MARK)