Bug 279050

Summary: SVG text path can't render Arabic
Product: WebKit Reporter: Ebrahim Byagowi <ebrahim>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, fantasai.bugs, karlcow, koivisto, mmaxfield, vitor.roriz, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
textpath text rendering is broken none

Ebrahim Byagowi
Reported 2024-09-03 00:03:36 PDT
Created attachment 472413 [details] textpath text rendering is broken This is akin to https://issues.chromium.org/issues/40366122 Compare the following to Chrome and Firefox, data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"> <text x="100" y="100" font-size="28">سلام</text> <path fill="transparent" id="f" d="m100 200 L 200 200Z"/> <text font-size="28"> <textPath xlink:href="%23f">سلام</textPath> </text> </svg> Expected: To all look the same Actual: Safari text rendering for RTL text is broken
Attachments
textpath text rendering is broken (186.70 KB, image/png)
2024-09-03 00:03 PDT, Ebrahim Byagowi
no flags
alan
Comment 1 2024-09-03 19:16:24 PDT
I haven't look at the blink issue (thank you for linking to it) but I bet this is a bug in our legacy inline layout which is what svg text rendering still based on. We are in the middle of moving svg text (layout and) rendering over on top of IFC. Hopefully this progresses as well -though I don't want to discourage anyone from giving a shot to this.
Radar WebKit Bug Importer
Comment 2 2024-09-10 00:04:14 PDT
Ahmad Saleem
Comment 3 2024-09-10 06:40:23 PDT
In Blink, it was fixed with SVG Text Layout re-write similar to their LayoutNG, so it might be something definitely broken in our SVG Text rendering code relying on old Legacy Layout code.
Note You need to log in before you can comment on or make changes to this bug.