[realbox] Improves support for larger minimum font sizes
Settings the line-height CSS property can result in unappealing outcomes such as characters appearing chopped off. By default, line-height is calculated based on the font size, font family and other factors such as presence of italic text etc. This CL eliminates uses of line-height in the realbox in order to better support larger minimum font sizes. The following are screenshots of the realbox with "tiny" (default) and "huge" (maximum) minimum font sizes. before (tiny): screenshot/6GZeMfLZEejVEG7 before (huge): screenshot/A8nt8ynzpG4yeKF after (tiny): screenshot/BNyDMfRYbuum8AK after (huge): screenshot/9TdmkQoswconjv4 Fixed: 1145840, 1051865 Change-Id: Ia24c8f44cf9f97ed6345c7f0064178dde525b3cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2561580Reviewed-by:Tibor Goldschwendt <tiborg@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#832017}
Showing
Please register or sign in to comment