Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Issue 1149693002: Add Unicode Variation Selector support to harfBuzzGetGlyph (Closed)

Created:
5 years, 7 months ago by kojii
Modified:
5 years, 6 months ago
Reviewers:
behdad_google, eae, behdad
CC:
blink-reviews, krit, Rik, dshwang, jbroman, Justin Novosad, danakj, pdr+graphicswatchlist_chromium.org, f(malita), Stephen Chennney, rwlbuis, bashi, Kunihiko Sakamoto
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add Unicode Variation Selector support to harfBuzzGetGlyph This patch adds variation selectors support to the callback function harfBuzzGetGlyph. Variation selectors in OpenType uses CMP 14 table. Neither Skia nor Blink supports this table today. As discussed in crbug.com/180510, using HB's CMAP 14 support is the most forward looking way to support variation selectors. An existing test unicode-variation-selector.html had failing result images. This is turned to a ref test in this patch, and a case for non-existent VS is added. BUG=383580, 461371 TEST=fast/text/unicode-variation-selector.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197308 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197426

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Mac does not follow OpenType recommendations #

Patch Set 4 : #

Patch Set 5 : Rebase #

Patch Set 6 : Exclude Linux for use_system_harfbuzz issue #

Patch Set 7 : Add -expected back that was accidentally removed during rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -415 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M LayoutTests/fast/text/unicode-variation-selector.html View 1 1 chunk +22 lines, -5 lines 0 comments Download
A + LayoutTests/fast/text/unicode-variation-selector-expected.html View 1 5 6 1 chunk +13 lines, -10 lines 0 comments Download
D LayoutTests/platform/android/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/android/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/android/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/android/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/linux/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/linux/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/linux/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/linux/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/mac-lion/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac-snowleopard/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac-snowleopard/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/mac-snowleopard/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac-snowleopard/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/mac/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/mac/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/mac/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/mac/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win-xp/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win-xp/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win-xp/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win-xp/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win-xp/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win-xp/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win/virtual/antialiasedtext/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/win/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.png View 1 Binary file 0 comments Download
D LayoutTests/platform/win/virtual/slimmingpaint/fast/text/unicode-variation-selector-expected.txt View 1 1 chunk +0 lines, -26 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzFace.cpp View 1 2 3 4 5 3 chunks +32 lines, -6 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp View 1 2 3 4 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
kojii
Not for landing yet, just to show how hb-ot-font is used, so COMMIT=false for now. ...
5 years, 7 months ago (2015-05-27 01:21:40 UTC) #2
kojii
PTAL. Win bot failed for plugins, and re-trying, but this test passed. Thank you for ...
5 years, 6 months ago (2015-06-04 18:13:18 UTC) #3
eae
Looks good to me but I'd like Behdad to take a look.
5 years, 6 months ago (2015-06-04 18:18:23 UTC) #5
behdad_google
Hi Koji, Thanks for putting this together. I'm a bit concerned about creating a font ...
5 years, 6 months ago (2015-06-04 18:37:07 UTC) #7
kojii
Thank you Emli and Behdad for the prompt reviews. On 2015/06/04 18:37:07, behdad_google wrote: > ...
5 years, 6 months ago (2015-06-05 12:03:05 UTC) #9
kojii
behdad@, could you mind to have a look at this CL? I hope it shouldn't ...
5 years, 6 months ago (2015-06-16 01:08:28 UTC) #10
behdad_google
lgtm! Koji, I wonder what happens if we always use ot-face for cmap lookups. That ...
5 years, 6 months ago (2015-06-16 22:23:29 UTC) #11
kojii
eae@, could you PTAL? On 2015/06/16 22:23:29, behdad_google wrote: > lgtm! > > Koji, I ...
5 years, 6 months ago (2015-06-17 17:12:51 UTC) #12
eae
LGTM
5 years, 6 months ago (2015-06-17 17:18:22 UTC) #13
behdad_google
On 2015/06/17 17:12:51, kojii wrote: > eae@, could you PTAL? > > On 2015/06/16 22:23:29, ...
5 years, 6 months ago (2015-06-17 17:36:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149693002/80001
5 years, 6 months ago (2015-06-17 23:34:12 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197308
5 years, 6 months ago (2015-06-18 02:39:12 UTC) #17
kojii
Reverted at https://codereview.chromium.org/1192473003/ as this CL broke non-official Linux builds which sets use_system_harfbuzz=0
5 years, 6 months ago (2015-06-18 04:38:55 UTC) #18
kojii
See crbug.com/462689
5 years, 6 months ago (2015-06-18 04:46:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149693002/140001
5 years, 6 months ago (2015-06-19 03:21:16 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 03:25:29 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197426

Powered by Google App Engine
This is Rietveld 408576698