Module: wine Branch: master Commit: 384067bda6d36bb1871805fc5bd8540139b952a3 URL: https://source.winehq.org/git/wine.git/?a=commit;h=384067bda6d36bb1871805fc5...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Jun 5 16:52:28 2020 +0300
dwrite: Use correct glyph array offset for alternate substitution table output.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dwrite/opentype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index fc46610bcb..2106fe2cf7 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -4916,7 +4916,7 @@ static BOOL opentype_layout_apply_gsub_alt_substitution(struct scriptshaping_con if (alt_index > count || !alt_index) return FALSE;
- glyph = table_read_be_word(gsub, subtable_offset + offset + sizeof(count) + (alt_index - 1) * sizeof(glyph)); + glyph = table_read_be_word(gsub, subtable_offset + offset + 2 + (alt_index - 1) * sizeof(glyph)); } else {