[HB] Fix lookup_flag ignoring

Reported by Keith Stribley on HarfBuzz list.
This commit is contained in:
Behdad Esfahbod 2009-10-29 03:00:44 -04:00
parent 52e9a71d57
commit aa87d95173
2 changed files with 2 additions and 1 deletions

View File

@ -244,6 +244,7 @@ struct LookupFlag : USHORT
IgnoreBaseGlyphs = 0x0002u, IgnoreBaseGlyphs = 0x0002u,
IgnoreLigatures = 0x0004u, IgnoreLigatures = 0x0004u,
IgnoreMarks = 0x0008u, IgnoreMarks = 0x0008u,
IgnoreFlags = 0x000Eu,
UseMarkFilteringSet = 0x0010u, UseMarkFilteringSet = 0x0010u,
Reserved = 0x00E0u, Reserved = 0x00E0u,
MarkAttachmentType = 0xFF00u MarkAttachmentType = 0xFF00u

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 /* Not covered, if, for example, glyph class is ligature and
* lookup_flags includes LookupFlags::IgnoreLigatures * lookup_flags includes LookupFlags::IgnoreLigatures
*/ */
if (property & lookup_flags) if (property & lookup_flags & LookupFlag::IgnoreFlags)
return false; return false;
if (property & HB_OT_LAYOUT_GLYPH_CLASS_MARK) if (property & HB_OT_LAYOUT_GLYPH_CLASS_MARK)