WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
236307
Replacing space with GSUB code produces wrong rendering
https://bugs.webkit.org/show_bug.cgi?id=236307
Summary
Replacing space with GSUB code produces wrong rendering
akiem
Reported
2022-02-08 09:22:13 PST
Created
attachment 451260
[details]
Test files to reproduce the described bug 1. replacing space with GSUB code produces wrong rendering The reason for this is the following (explained by Myles Maxfield): This is due to our “charactersTreatedAsSpace” logic. We measure text in differently-sized chunks different places in WebKit, and we want to maintain the invariant that, even if we split up the text and measure word-by-word, that will get the same results as if you measured the whole string including spaces. To do this, we have code in WebKit where we clobber the widths of space glyphs after shaping to set them to be equal to what they were before shaping. Fixing this would be a large architectural change; it’s something I’d like to do eventually, though. For test files please check the attachment.
Attachments
Test files to reproduce the described bug
(12.03 KB, application/zip)
2022-02-08 09:22 PST
,
akiem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-14 19:56:42 PST
<
rdar://problem/88943541
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug