[PATCH 0/1] MR10845: riched20: Increase max_glyphs size.
This is to accommodate GSUB substitutions done by complex fonts such as Noto Nastaliq Urdu. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10845
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/10845
This merge request was closed by Huw Davies. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10845
This is simply saving a realloc in a corner-case. I don't think it's worth the code churn. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10845#note_139790
participants (3)
-
Huw Davies (@huw) -
समीर सिंह Sameer Singh -
समीरसिंह Sameer Singh (@ss141309)