mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[arabic] Improve stretch length calculation
Err on the side of being too short, than too wide. Reduces chance of overlaps with neighboring glyphs.
This commit is contained in:
1 parent
59821ab8b4
commit
04ff23e73d
1 file changed
+1
-1
@@ -541,7 +541,7 @@ apply_stch (const hb_ot_shape_plan_t *plan,
|
||||
|
||||
hb_position_t w_remaining = w_total - w_fixed - overlap;
|
||||
if (sign * w_remaining > sign * w_repeating && sign * w_repeating > 0)
|
||||
n_copies = (sign * w_remaining + sign * w_repeating / 2) / (sign * w_repeating) - 1;
|
||||
n_copies = (sign * w_remaining + sign * w_repeating / 4) / (sign * w_repeating) - 1;
|
||||
|
||||
if (step == MEASURE)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user