Commit 979868ae authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/opentype: Do not include base advance to the mark advance offset.

This is handled later using attachment chains, after all positional features are applied. Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d2d91fba
...@@ -4320,7 +4320,7 @@ static BOOL opentype_layout_apply_mark_array(struct scriptshaping_context *conte ...@@ -4320,7 +4320,7 @@ static BOOL opentype_layout_apply_mark_array(struct scriptshaping_context *conte
if (context->is_rtl) if (context->is_rtl)
context->offsets[context->cur].advanceOffset = mark_x - base_x; context->offsets[context->cur].advanceOffset = mark_x - base_x;
else else
context->offsets[context->cur].advanceOffset = -context->advances[glyph_pos] + base_x - mark_x; context->offsets[context->cur].advanceOffset = base_x - mark_x;
context->offsets[context->cur].ascenderOffset = base_y - mark_y; context->offsets[context->cur].ascenderOffset = base_y - mark_y;
opentype_set_glyph_attach_type(context, context->cur, GLYPH_ATTACH_MARK); opentype_set_glyph_attach_type(context, context->cur, GLYPH_ATTACH_MARK);
context->glyph_infos[context->cur].attach_chain = (int)glyph_pos - (int)context->cur; context->glyph_infos[context->cur].attach_chain = (int)glyph_pos - (int)context->cur;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment