Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 9a5320a

Browse files
Fredrik Söderquistchromium-wpt-export-bot
authored andcommitted
Use the "scaled" font when computing baselines for SVG text
The font code (FontMetrics::AscentDescentWithHacks specifically) will (may) mangle (round) the ascent and descent, meaning that for small font-sizes all precision is lost. Using our (potentially) "rescaled" Font for computing the baseline for text gives us a chance to recover some of the precision lost in the rounding process. Bug: 1013859 Change-Id: Ieaadaf558315b8a082331ac76deeb52bcf3b11c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1859961 Reviewed-by: Stephen Chenney <[email protected]> Commit-Queue: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/master@{#706091}
1 parent 3eecf8c commit 9a5320a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)