[kerx] Skip variation subtables

This commit is contained in:
Behdad Esfahbod 2018-10-10 17:32:32 -04:00
parent 1e8fdd285f
commit 44f09afd5b
1 changed files with 7 additions and 7 deletions

View File

@ -312,13 +312,13 @@ struct kerx
{
bool reverse;
if (table->coverage & (KerxTable::CrossStream | KerxTable::Variation))
goto skip; /* We do NOT handle cross-stream or variation kerning. */
if (HB_DIRECTION_IS_VERTICAL (c->buffer->props.direction) !=
bool (table->coverage & KerxTable::Vertical))
goto skip;
if (table->coverage & KerxTable::CrossStream)
goto skip; /* We do NOT handle cross-stream kerning. None of Apple fonts use it. */
reverse = bool (table->coverage & KerxTable::Backwards) !=
HB_DIRECTION_IS_BACKWARD (c->buffer->props.direction);