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

Issue 21259002: Linux doubles line gap when no VDMX table present (Closed)

Created:
7 years, 4 months ago by eae
Modified:
7 years, 3 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, danakj, dglazkov+blink, Rik, Stephen Chennney, jeez
Visibility:
Public.

Description

On linux when no VDMX table is present the leading is applied twice causing the line gap to be doubled. When isVDMXValid is false, the following effectively happens: descent = metrics.fDescent + metrics.fLeading; lineGap = SkScalarToFloat(metrics.fLeading); m_fontMetrics.setLineGap(lineGap); m_fontMetrics.setLineSpacing(ascent + descent + lineGap); Note that since descent already incorporates the fLeading, the fLeading will be applied twice in the total height. When isVDMXValid is true, the descent does not incorporate the fLeading. BUG=265268 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156936

Patch Set 1 : #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/skia/SimpleFontDataSkia.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eae
7 years, 3 months ago (2013-08-29 16:40:48 UTC) #1
bungeman-chromium
lgtm
7 years, 3 months ago (2013-08-29 20:36:16 UTC) #2
pdr.
On 2013/08/29 20:36:16, bungeman2 wrote: > lgtm LGTM
7 years, 3 months ago (2013-08-29 20:52:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/21259002/37001
7 years, 3 months ago (2013-08-29 20:54:18 UTC) #4
commit-bot: I haz the power
7 years, 3 months ago (2013-08-29 20:58:10 UTC) #5
Message was sent while issue was closed.
Change committed as 156936

Powered by Google App Engine
This is Rietveld 408576698