[HB] Fix lookup_flag ignoring

Reported by Keith Stribley on HarfBuzz list.
This commit is contained in:
Behdad Esfahbod committed 2009-11-02 14:40:48 -05:00
1 parent 52e9a71d57
commit aa87d95173
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -244,6 +244,7 @@ struct LookupFlag : USHORT
IgnoreBaseGlyphs = 0x0002u,
IgnoreLigatures = 0x0004u,
IgnoreMarks = 0x0008u,
IgnoreFlags = 0x000Eu,
UseMarkFilteringSet = 0x0010u,
Reserved = 0x00E0u,
MarkAttachmentType = 0xFF00u
+1 -1
View 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)