New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 661178 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Subscript and superscript baselines do not work properly for small fonts on low DPI Windows machines

Project Member Reported by zakerinasab@chromium.org, Nov 1 2016

Issue description

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.
 
svg-text-super-sub-tiny-fonts.svg
2.2 KB Download
Current.png
3.0 KB View Download
Expected.png
3.8 KB View Download
smallFonts.svg
5.9 KB Download
Current-2.png
19.4 KB View Download
Expected-2.png
42.8 KB View Download
canvas-text-baseline-tiny-fonts.html
1.1 KB View Download
Current-3.png
7.0 KB View Download
Expected-3.png
18.7 KB View Download

Comment 1 by e...@chromium.org, Nov 1 2016

Status: Available (was: Untriaged)
Project Member

Comment 2 by sheriffbot@chromium.org, Nov 2 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 3 by junov@chromium.org, Nov 2 2017

Owner: fs...@chromium.org
Status: Assigned (was: Untriaged)
Cc: -junov@chromium.org
Cc: fs...@chromium.org
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment