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

Issue 943093002: Make bigger string size in RenderTextHarfBuzz.

Created:
5 years, 10 months ago by Jun Mukai
Modified:
5 years, 10 months ago
Reviewers:
msw, ckocagil
CC:
chromium-reviews, derat+watch_chromium.org, Daniel Erat
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make bigger string size in RenderTextHarfBuzz. Some diacritics appear above the ascents, and some glyphs like underscore may appear below descent. However, our code base seems to assume a line from the ascent and the descent. This CL makes enough string size for the gap between the top bearing line and the ascent and the gap between bottom bearing line and the descent so that they are drawn inside of the specified area. BUG=459812 R=msw@chromium.org, ckocagil@chromium.org TEST=gfx_unittests still succeeds

Patch Set 1 #

Patch Set 2 : test fixes #

Patch Set 3 : keep using fAscent/fDescent but make bigger string size #

Patch Set 4 : fix #

Total comments: 8

Patch Set 5 : fix test failures #

Patch Set 6 : comments addressed #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -8 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 5 chunks +27 lines, -3 lines 2 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 4 chunks +12 lines, -4 lines 3 comments Download
M ui/views/touchui/touch_selection_controller_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
msw
lgtm
5 years, 10 months ago (2015-02-21 00:07:40 UTC) #1
Jun Mukai
PTAL The code changed very well -- it seems simply replacing fAscent/fDescent by fTop/fBottom isn't ...
5 years, 10 months ago (2015-02-23 21:56:18 UTC) #5
msw
https://codereview.chromium.org/943093002/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/943093002/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode391 ui/gfx/render_text_harfbuzz.cc:391: if (line == &lines_.front()) { Why does only the ...
5 years, 10 months ago (2015-02-24 23:31:36 UTC) #6
Jun Mukai
Done, but I noticed that styled_label_unittest.cc is still broken, and it seems I'll have to ...
5 years, 10 months ago (2015-02-25 23:49:19 UTC) #7
msw
Okay, this makes way more sense now that I'm reading it again. +CC Dan and ...
5 years, 10 months ago (2015-02-26 00:47:21 UTC) #8
Peter Kasting
5 years, 10 months ago (2015-02-26 01:04:05 UTC) #9
The premise of this CL sounds strange.  I commented on the bug.

Powered by Google App Engine
This is Rietveld 408576698