提交 0eb41570 编写于 作者: B Behdad Esfahbod

[kerx] Disable backwards-kerning for non-state-machine tables

That's what the spec says for Backwards flag, only applicable to
formats 1 and 4.
上级 b2f687c2
......@@ -118,7 +118,7 @@ struct KerxSubTableFormat0
if (!c->plan->requested_kerning)
return false;
if (header.coverage & header.CrossStream)
if (header.coverage & (header.CrossStream | header.Backwards))
return false;
accelerator_t accel (*this, c);
......@@ -427,7 +427,7 @@ struct KerxSubTableFormat2
if (!c->plan->requested_kerning)
return false;
if (header.coverage & header.CrossStream)
if (header.coverage & (header.CrossStream | header.Backwards))
return false;
accelerator_t accel (*this, c);
......@@ -696,7 +696,7 @@ struct KerxSubTableFormat6
if (!c->plan->requested_kerning)
return false;
if (header.coverage & header.CrossStream)
if (header.coverage & (header.CrossStream | header.Backwards))
return false;
accelerator_t accel (*this, c);
......@@ -918,8 +918,6 @@ struct KerxTable
c->sanitizer.set_object (*st);
/* XXX Reverse-kern is probably not working yet...
* hb_kern_machine_t would need to know that it's reverse-kerning. */
st->dispatch (c);
if (reverse)
......
......@@ -66,7 +66,7 @@ struct KernSubTableFormat3
if (!c->plan->requested_kerning)
return false;
if (header.coverage & header.CrossStream)
if (header.coverage & (header.CrossStream | header.Backwards))
return false;
hb_kern_machine_t<KernSubTableFormat3> machine (*this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册