From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com> This is to accommodate GSUB substitutions done by complex fonts such as Noto Nastaliq Urdu. --- dlls/riched20/wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index a4d638aec3d..49cbe2eea24 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -68,7 +68,7 @@ static HRESULT shape_run( ME_Context *c, ME_Run *run ) if (!run->glyphs) { - run->max_glyphs = 1.5 * run->len + 16; /* This is suggested in the uniscribe documentation */ + run->max_glyphs = 2 * run->len + 16; run->max_glyphs = (run->max_glyphs + 7) & ~7; /* Keep alignment simple */ get_run_glyph_buffers( run ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10612