提交 2352cc35 编写于 作者: B Behdad Esfahbod

[kerx] Whitespace

上级 114f66dd
...@@ -143,12 +143,12 @@ struct KerxSubTableFormat1 ...@@ -143,12 +143,12 @@ struct KerxSubTableFormat1
if (flags & Reset) if (flags & Reset)
{ {
depth = 0; depth = 0;
} }
if (flags & Push) if (flags & Push)
{ {
if (likely (depth < ARRAY_LENGTH (stack))) if (likely (depth < ARRAY_LENGTH (stack)))
stack[depth++] = buffer->idx; stack[depth++] = buffer->idx;
else else
depth = 0; /* Probably not what CoreText does, but better? */ depth = 0; /* Probably not what CoreText does, but better? */
...@@ -157,14 +157,14 @@ struct KerxSubTableFormat1 ...@@ -157,14 +157,14 @@ struct KerxSubTableFormat1
if (entry->data.kernActionIndex != 0xFFFF) if (entry->data.kernActionIndex != 0xFFFF)
{ {
const FWORD *actions = &kernAction[entry->data.kernActionIndex]; const FWORD *actions = &kernAction[entry->data.kernActionIndex];
if (!c->sanitizer.check_array (actions, depth)) if (!c->sanitizer.check_array (actions, depth))
{ {
depth = 0; depth = 0;
return false; return false;
} }
hb_mask_t kern_mask = c->plan->kern_mask; hb_mask_t kern_mask = c->plan->kern_mask;
for (unsigned int i = 0; i < depth; i++) for (unsigned int i = 0; i < depth; i++)
{ {
/* Apparently, when spec says "Each pops one glyph from the kerning stack /* Apparently, when spec says "Each pops one glyph from the kerning stack
* and applies the kerning value to it.", it doesn't mean it in that order. * and applies the kerning value to it.", it doesn't mean it in that order.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册