[kerx] Skip variation subtables
This commit is contained in:
parent
1e8fdd285f
commit
44f09afd5b
|
@ -312,13 +312,13 @@ struct kerx
|
||||||
{
|
{
|
||||||
bool reverse;
|
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) !=
|
if (HB_DIRECTION_IS_VERTICAL (c->buffer->props.direction) !=
|
||||||
bool (table->coverage & KerxTable::Vertical))
|
bool (table->coverage & KerxTable::Vertical))
|
||||||
goto skip;
|
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) !=
|
reverse = bool (table->coverage & KerxTable::Backwards) !=
|
||||||
HB_DIRECTION_IS_BACKWARD (c->buffer->props.direction);
|
HB_DIRECTION_IS_BACKWARD (c->buffer->props.direction);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue