[kern/kerx] Enable crossStream kerning in vertical
CoreText doesn't, but no reason we shouldn't do.
This commit is contained in:
parent
d5c88af4a2
commit
f5f4ca7871
|
@ -334,10 +334,10 @@ struct KerxSubTableFormat1
|
|||
{
|
||||
if (crossStream)
|
||||
{
|
||||
/* CoreText doesn't do crossStream kerning in vertical. */
|
||||
//crossOffset += v;
|
||||
//if (!buffer->pos[idx].x_offset)
|
||||
// buffer->pos[idx].x_offset = c->font->em_scale_x (crossOffset);
|
||||
/* CoreText doesn't do crossStream kerning in vertical. We do. */
|
||||
crossOffset += v;
|
||||
if (!buffer->pos[idx].x_offset)
|
||||
buffer->pos[idx].x_offset = c->font->em_scale_x (crossOffset);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -161,10 +161,10 @@ struct KernSubTableFormat1
|
|||
{
|
||||
if (crossStream)
|
||||
{
|
||||
/* CoreText doesn't do crossStream kerning in vertical. */
|
||||
//crossOffset += v;
|
||||
//if (!buffer->pos[idx].x_offset)
|
||||
// buffer->pos[idx].x_offset = c->font->em_scale_x (crossOffset);
|
||||
/* CoreText doesn't do crossStream kerning in vertical. We do. */
|
||||
crossOffset += v;
|
||||
if (!buffer->pos[idx].x_offset)
|
||||
buffer->pos[idx].x_offset = c->font->em_scale_x (crossOffset);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue