[HB] Fix lookup_flag ignoring
Reported by Keith Stribley on HarfBuzz list.
This commit is contained in:
parent
52e9a71d57
commit
aa87d95173
|
@ -244,6 +244,7 @@ struct LookupFlag : USHORT
|
|||
IgnoreBaseGlyphs = 0x0002u,
|
||||
IgnoreLigatures = 0x0004u,
|
||||
IgnoreMarks = 0x0008u,
|
||||
IgnoreFlags = 0x000Eu,
|
||||
UseMarkFilteringSet = 0x0010u,
|
||||
Reserved = 0x00E0u,
|
||||
MarkAttachmentType = 0xFF00u
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue