[kerx] Implement tupleKerning for Format1

Untested.
This commit is contained in:
Behdad Esfahbod 2018-11-07 13:51:17 -05:00
parent 39b4ef6f18
commit f4bad0086e
1 changed files with 3 additions and 4 deletions

View File

@ -295,10 +295,12 @@ struct KerxSubTableFormat1
i++;
break;
}
unsigned int tuple_count = table->header.tuple_count ();
tuple_count = tuple_count ? tuple_count : 1;
for (; i; i--)
{
unsigned int idx = stack[depth - i];
int v = actions[i - 1];
int v = actions[(i - 1) * tuple_count];
/* "The end of the list is marked by an odd value..."
* Ignore it. */
@ -376,9 +378,6 @@ struct KerxSubTableFormat1
if (!c->plan->requested_kerning)
return false;
if (header.tuple_count ())
return_trace (false); /* TODO kerxTupleKern */
driver_context_t dc (this, c);
StateTableDriver<Types, EntryData> driver (machine, c->buffer, c->font->face);