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

Issue 674233003: RenderTextHarfBuzz: Try fallback fonts of the Uniscribe font while shaping (Closed)

Created:
6 years, 1 month ago by ckocagil
Modified:
6 years ago
Reviewers:
msw, Nico, Daniel Erat
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

RenderTextHarfBuzz: Try fallback fonts of the Uniscribe font while shaping This CL also fixes a Linux issue where a fallback font could be skipped. BUG=426052 R=msw Committed: https://crrev.com/31227048b11f0bc84a295ff82b5056599afa07f7 Cr-Commit-Position: refs/heads/master@{#301920}

Patch Set 1 #

Total comments: 4

Patch Set 2 : added test #

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : skip first font #

Total comments: 12

Patch Set 5 : comments addressed #

Total comments: 4

Patch Set 6 : comments addressed 2 #

Patch Set 7 : rebased #

Patch Set 8 : fix include #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -23 lines) Patch
M ui/gfx/platform_font_win.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 6 2 chunks +32 lines, -11 lines 2 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -0 lines 0 comments Download
M ui/gfx/render_text_win.cc View 2 chunks +17 lines, -12 lines 0 comments Download

Messages

Total messages: 32 (9 generated)
ckocagil
6 years, 1 month ago (2014-10-25 18:50:46 UTC) #1
msw
Have you confirmed that this fixes the bug? Can you write a test? (maybe check ...
6 years, 1 month ago (2014-10-27 17:28:51 UTC) #3
Daniel Erat
https://codereview.chromium.org/674233003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1137 ui/gfx/render_text_harfbuzz.cc:1137: for (size_t i = 1; i < fallback_families.size(); ++i) ...
6 years, 1 month ago (2014-10-27 18:49:24 UTC) #4
ckocagil
On 2014/10/27 17:28:51, msw wrote: > Have you confirmed that this fixes the bug? Yes. ...
6 years, 1 month ago (2014-10-28 03:24:42 UTC) #5
Daniel Erat
https://codereview.chromium.org/674233003/diff/40001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/40001/ui/gfx/render_text_harfbuzz.cc#newcode1128 ui/gfx/render_text_harfbuzz.cc:1128: uniscribe_fallbacks.begin(), uniscribe_fallbacks.end()); patch set 2 skipped the first uniscribe ...
6 years, 1 month ago (2014-10-28 14:32:59 UTC) #6
ckocagil
https://codereview.chromium.org/674233003/diff/40001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/40001/ui/gfx/render_text_harfbuzz.cc#newcode1128 ui/gfx/render_text_harfbuzz.cc:1128: uniscribe_fallbacks.begin(), uniscribe_fallbacks.end()); On 2014/10/28 14:32:59, Daniel Erat wrote: > ...
6 years, 1 month ago (2014-10-28 17:39:04 UTC) #7
Daniel Erat
lgtm with a question https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1129 ui/gfx/render_text_harfbuzz.cc:1129: uniscribe_fallbacks.begin() + 1, uniscribe_fallbacks.end()); can ...
6 years, 1 month ago (2014-10-28 18:00:36 UTC) #8
msw
https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1129 ui/gfx/render_text_harfbuzz.cc:1129: uniscribe_fallbacks.begin() + 1, uniscribe_fallbacks.end()); On 2014/10/28 18:00:36, Daniel Erat ...
6 years, 1 month ago (2014-10-28 18:17:56 UTC) #9
Daniel Erat
https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1133 ui/gfx/render_text_harfbuzz.cc:1133: // Skip the first fallback font, which is |primary_font|. ...
6 years, 1 month ago (2014-10-28 18:20:53 UTC) #10
ckocagil
https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode1129 ui/gfx/render_text_harfbuzz.cc:1129: uniscribe_fallbacks.begin() + 1, uniscribe_fallbacks.end()); On 2014/10/28 18:17:56, msw wrote: ...
6 years, 1 month ago (2014-10-29 01:07:20 UTC) #12
Daniel Erat
please also update the change description to mention that this also fixes a potential issue ...
6 years, 1 month ago (2014-10-29 01:18:11 UTC) #13
ckocagil
On 2014/10/29 01:18:11, Daniel Erat wrote: > please also update the change description to mention ...
6 years, 1 month ago (2014-10-29 02:05:16 UTC) #14
Daniel Erat
lgtm
6 years, 1 month ago (2014-10-29 04:22:43 UTC) #15
msw
lgtm, thanks!
6 years, 1 month ago (2014-10-29 17:23:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674233003/120001
6 years, 1 month ago (2014-10-29 17:27:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/75275) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/80310) android_dbg_tests_recipe ...
6 years, 1 month ago (2014-10-29 17:34:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674233003/140001
6 years, 1 month ago (2014-10-29 19:38:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/12732)
6 years, 1 month ago (2014-10-29 19:48:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674233003/160001
6 years, 1 month ago (2014-10-29 19:55:11 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:160001)
6 years, 1 month ago (2014-10-29 20:47:57 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/31227048b11f0bc84a295ff82b5056599afa07f7 Cr-Commit-Position: refs/heads/master@{#301920}
6 years, 1 month ago (2014-10-29 20:49:12 UTC) #29
Nico
https://codereview.chromium.org/674233003/diff/160001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/674233003/diff/160001/ui/gfx/render_text_harfbuzz.cc#newcode1135 ui/gfx/render_text_harfbuzz.cc:1135: for (auto family : fallback_families) { This should be ...
6 years, 1 month ago (2014-11-21 17:52:40 UTC) #31
ckocagil
6 years ago (2014-11-25 21:09:25 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/674233003/diff/160001/ui/gfx/render_text_harf...
File ui/gfx/render_text_harfbuzz.cc (right):

https://codereview.chromium.org/674233003/diff/160001/ui/gfx/render_text_harf...
ui/gfx/render_text_harfbuzz.cc:1135: for (auto family : fallback_families) {
On 2014/11/21 17:52:40, Nico wrote:
> This should be `const auto&` according to the style guide. As is, this loop
> copies a bunch os trings aroudn for no good reason.

I will fix this in https://codereview.chromium.org/738363002/.

Powered by Google App Engine
This is Rietveld 408576698