When the font size is small (<1), superscript and subscript tags (baseline-shift="super" and baseline-shift="sub") do not make any difference in the baseline on low-DPI Windows machines. This happens because subpixel text rendering is turned off for very small fonts in FontPlatformData::setupPaint (in FontPlatformDataWin.cpp).
Fixing this bug must correct the following layout test results on Windows try-bots (not the local Windows machines with high-DPI). Please use rebaseline-cl to make sure results are correct on try bots.
third_party/WebKit/LayoutTests/fast/canvas/canvas-text-baseline-tiny-fonts.html
third_party/WebKit/LayoutTests/svg/batik/text/smallFonts.svg
third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg
This bug is related to crbug.com/656638 .
Expected behavior: Superscript and subscript tags must properly shift the baseline.
|
Deleted:
svg-text-super-sub-tiny-fonts.svg
2.2 KB
|
|
svg-text-super-sub-tiny-fonts.svg
2.2 KB
Download
|
|
Deleted:
Current.png
3.0 KB
|
|
Deleted:
Expected.png
3.8 KB
|
|
Deleted:
smallFonts.svg
5.9 KB
|
|
Deleted:
Current-2.png
19.4 KB
|
|
Deleted:
Expected-2.png
42.8 KB
|
|
Deleted:
canvas-text-baseline-tiny-fonts.html
1.1 KB
|
|
Deleted:
Current-3.png
7.0 KB
|
|
Deleted:
Expected-3.png
18.7 KB
|
Comment 1 by e...@chromium.org
, Nov 1 2016