Chromium Code Reviews
DescriptionOn 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 : #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||