[kerx] Comment
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 10 Oct 2018 03:35:07 +0000 (23:35 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 10 Oct 2018 03:37:00 +0000 (23:37 -0400)
src/hb-aat-layout-kerx-table.hh
src/hb-ot-kern-table.hh

index d6747f9..e5934c3 100644 (file)
@@ -317,7 +317,7 @@ struct kerx
         goto skip;
 
       if (table->coverage & KerxTable::CrossStream)
-        goto skip; /* We do NOT handle cross-stream kerning. */
+        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);
index c4e53fa..ccb666e 100644 (file)
@@ -463,6 +463,7 @@ struct kern
                       hb_buffer_t  *buffer,
                       hb_mask_t kern_mask) const
     {
+      /* We only apply horizontal kerning in this table. */
       if (!HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction))
         return;