[kerx] Minor

This commit is contained in:
Behdad Esfahbod 2018-10-07 23:08:39 -04:00
parent d62b4011cc
commit 1a5a3325a2
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ struct KerxSubTableFormat1
struct KerxSubTableFormat2 struct KerxSubTableFormat2
{ {
inline int get_kerning (hb_codepoint_t left, hb_codepoint_t right, const char *end) const inline int get_kerning (hb_codepoint_t left, hb_codepoint_t right,
const char *end, unsigned int num_glyphs) const
{ {
unsigned int num_glyphs = 0; /* XXX */
unsigned int l = *(this+leftClassTable).get_value (left, num_glyphs); unsigned int l = *(this+leftClassTable).get_value (left, num_glyphs);
unsigned int r = *(this+rightClassTable).get_value (right, num_glyphs); unsigned int r = *(this+rightClassTable).get_value (right, num_glyphs);
unsigned int offset = l + r; unsigned int offset = l + r;