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

Issue 509093004: linux: Make RenderTextPango avoid clipping underlines. (Closed)

Created:
6 years, 3 months ago by Daniel Erat
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

linux: Make RenderTextPango avoid clipping underlines. Adjust underline positions so the lines won't get clipped. I think that the inaccuracy may be occurring due to our conversion from PangoFontDescriptions (usually containing a point-based size) to a rounded pixel-based size and then back to a PangoFontDescription. Luckily, RenderTextPango will be replaced by RenderTextHarfBuzz soon. Also delete some dead code in PlatformFontPango for computing underline metrics. BUG=393117 TEST=manual: checked that the "Import bookmarks now..." underline is visible after setting my UI font to "Ubuntu 11" Committed: https://crrev.com/e22312d2327d29a092171a6ab13de12654a36b25 Cr-Commit-Position: refs/heads/master@{#292537}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -40 lines) Patch
M ui/gfx/platform_font_pango.h View 3 chunks +1 line, -10 lines 0 comments Download
M ui/gfx/platform_font_pango.cc View 4 chunks +0 lines, -27 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 chunk +12 lines, -3 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
Daniel Erat
derat@chromium.org changed reviewers: + asvitkine@chromium.org, msw@chromium.org
6 years, 3 months ago (2014-08-28 20:37:23 UTC) #1
Daniel Erat
Mike, would you mind building this to check if it also fixes the problem when ...
6 years, 3 months ago (2014-08-28 20:37:23 UTC) #2
Alexei Svitkine (slow)
Seems reasonable to me. LGTM.
6 years, 3 months ago (2014-08-29 00:07:46 UTC) #3
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 3 months ago (2014-08-29 00:09:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/509093004/1
6 years, 3 months ago (2014-08-29 00:10:13 UTC) #5
msw
lgtm with a question. Please ensure this doesn't break underlines for your original font settings ...
6 years, 3 months ago (2014-08-29 00:41:55 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 01:12:57 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as d8872d912640ac6936e2ef8f03e2e8e8d6ed9867
6 years, 3 months ago (2014-08-29 01:27:24 UTC) #8
Daniel Erat
On 2014/08/29 00:41:55, msw wrote: > lgtm with a question. Please ensure this doesn't break ...
6 years, 3 months ago (2014-08-29 02:49:44 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:04:52 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e22312d2327d29a092171a6ab13de12654a36b25
Cr-Commit-Position: refs/heads/master@{#292537}

Powered by Google App Engine
This is Rietveld 408576698