WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 97164
[Chromium] Improve glyph selection of HarfBuzzShaper
https://bugs.webkit.org/show_bug.cgi?id=97164
Summary
[Chromium] Improve glyph selection of HarfBuzzShaper
Kenichi Ishibashi
Reported
2012-09-19 20:43:13 PDT
In complex text, a character can correspond with zero, one, or multiple glyphs. Similarly, a glyph can correspond with zero, one, or multiple characters. I noticed that HarfBuzzShaper doesn't handle selection correctly for some cases. It seems that we should return character index like below: +--- cluster 0 --+--- cluster 1 --+-----+---- cluster n-2 ---+---- cluster n-1 ---+ Glyphs | c_0 | .. | c_0 | c_1 | .. | c_1 | ... | c_n-2 | .. | c_n-2 | c_n-1 | .. | c_n-1 | +----------------+----------------+-----+--------------------+--------------------+ CharacterIndex to be returned: LTR 0 | c_1 | ... | c_n-2 | c_n-1 | n RTL n | c_0 | c_1 | ... | c_n-2 | 0 (A cluster is the character index which correspond with a glyph)
Attachments
Patch
(10.15 KB, patch)
2012-09-19 21:05 PDT
,
Kenichi Ishibashi
no flags
Details
Formatted Diff
Diff
Patch
(10.83 KB, patch)
2012-09-20 00:27 PDT
,
Kenichi Ishibashi
no flags
Details
Formatted Diff
Diff
Patch for landing
(10.74 KB, patch)
2012-09-20 15:29 PDT
,
Kenichi Ishibashi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kenichi Ishibashi
Comment 1
2012-09-19 21:05:51 PDT
Created
attachment 164833
[details]
Patch
Kenichi Ishibashi
Comment 2
2012-09-19 21:07:49 PDT
Hi Tony, could you take a look?
WebKit Review Bot
Comment 3
2012-09-19 23:11:45 PDT
Comment on
attachment 164833
[details]
Patch
Attachment 164833
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13951080
New failing tests: fast/text/international/hebrew-selection.html http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html
Kenichi Ishibashi
Comment 4
2012-09-20 00:27:02 PDT
Created
attachment 164852
[details]
Patch
Tony Chang
Comment 5
2012-09-20 10:16:54 PDT
Comment on
attachment 164852
[details]
Patch I like your ref test.
Kenichi Ishibashi
Comment 6
2012-09-20 15:29:47 PDT
Created
attachment 164994
[details]
Patch for landing
Kenichi Ishibashi
Comment 7
2012-09-20 15:30:08 PDT
(In reply to
comment #5
)
> (From update of
attachment 164852
[details]
) > I like your ref test.
Thank you for review!
WebKit Review Bot
Comment 8
2012-09-20 16:15:56 PDT
Comment on
attachment 164994
[details]
Patch for landing Clearing flags on attachment: 164994 Committed
r129175
: <
http://trac.webkit.org/changeset/129175
>
WebKit Review Bot
Comment 9
2012-09-20 16:15:59 PDT
All reviewed patches have been landed. Closing bug.
Yury Semikhatsky
Comment 10
2012-09-20 23:21:01 PDT
The test is failing with image diff on Windows too. Looking at the image output I didn't see expected selection so I updated the expectations to mark the test as failing on Win instead of providing Win-specific expectations:
http://trac.webkit.org/changeset/129194
Link to the flakiness dashboard:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Ftext%2Finternational%2Fhebrew-selection.html
Also reopening the bug as it was specified in TestExpectations. You should either file another bug for tracking the failure or keep this one open.
Kenichi Ishibashi
Comment 11
2012-09-20 23:33:02 PDT
(In reply to
comment #10
)
> The test is failing with image diff on Windows too. Looking at the image output I didn't see expected selection so I updated the expectations to mark the test as failing on Win instead of providing Win-specific expectations: >
http://trac.webkit.org/changeset/129194
> > > Link to the flakiness dashboard: >
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Ftext%2Finternational%2Fhebrew-selection.html
> > Also reopening the bug as it was specified in TestExpectations. You should either file another bug for tracking the failure or keep this one open.
Thanks for the heads-up. I created a bug for tracking the failure.
Yury Semikhatsky
Comment 12
2012-09-21 00:17:09 PDT
(In reply to
comment #11
)
> (In reply to
comment #10
) > > The test is failing with image diff on Windows too. Looking at the image output I didn't see expected selection so I updated the expectations to mark the test as failing on Win instead of providing Win-specific expectations: > >
http://trac.webkit.org/changeset/129194
> > > > > > Link to the flakiness dashboard: > >
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Ftext%2Finternational%2Fhebrew-selection.html
> > > > Also reopening the bug as it was specified in TestExpectations. You should either file another bug for tracking the failure or keep this one open. > > Thanks for the heads-up. I created a bug for tracking the failure.
Thanks!
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