This commit is contained in:
Behdad Esfahbod 2010-05-21 16:43:17 +01:00
parent 0375bdd202
commit dd22a8f7bf
1 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ struct AlternateSubstFormat1
if (unlikely (!alt_set.len))
return false;
/* Note: This breaks badly if two features enabled this lookup together. */
unsigned int shift = _hb_ctz (lookup_mask);
unsigned int alt_index = ((lookup_mask & glyph_mask) >> shift);