You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98daf58
Browse filesBrowse the repository at this point in the historyBrowse files
Reland^2 "[skparagraph] Render visible hyphen at soft hyphen (U+00AD) line breaks"
This is a reland of commit 9a0def8
The reland was reverted (339e3c3) because soft hyphen tests still
failed on Ubuntu-NativeFonts bots: the hardcoded layout width of 60px
was too close to the actual advance width of "inter" at 20px Roboto
on those bots, causing the text to not break at the expected position.
Fix: increase the test layout width from 60 to 80px. At 20px Roboto,
"inter" measures ~40-55px across font versions (fits in 80), while
"international" measures ~100-130px (does not fit in 80), so the
break at the soft hyphen is reliably triggered.
Original change's description:
> When text is laid out and a line break occurs at a soft hyphen
> (U+00AD) position, a visible hyphen glyph ("-") is now shaped
> and appended to the end of that line. Soft hyphens that are not
> at line break positions remain invisible (zero-width), as before.
>
> This behavior is gated behind ParagraphStyle::setRenderSoftHyphens(),
> which defaults to false to preserve existing behavior for current
> consumers. Callers must opt in to enable visible hyphen rendering.
[email protected], [email protected]
Change-Id: I23b21e5d2b5fbd6bcb990e0a631c87456e46ad10
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1208837
Commit-Queue: Julia Lavrova <[email protected]>
Reviewed-by: Kaylee Lubick <[email protected]>
Reviewed-by: Julia Lavrova <[email protected]>
0 commit comments