DescriptionRe-land: RenderTextHarfBuzz: Set font render parameters in font data functions
Originally landed at: https://codereview.chromium.org/480533002/
- Properly pass font render settings to Skia font data functions. Otherwise Skia always returns rounded values.
- If subpixel positioning is off, round the glyph positions to match Pango's rounding logic.
BUG=402715, 402374, 402347
TEST=On Linux, character positions in UI text (address bar, infobars, tab titles) should be identical with --enable-harfbuzz-rendertext and --disable-harfbuzz-rendertext.
Committed: https://crrev.com/04f49f48a13c337cb9eaef0146ec4f15ed91984a
Cr-Commit-Position: refs/heads/master@{#291767}
Patch Set 1 #Patch Set 2 : Mac GetFontRenderParams #
Total comments: 2
Patch Set 3 : nits #
Total comments: 2
Patch Set 4 : remove ifdef #Patch Set 5 : disable subpixel positioning on win #
Total comments: 2
Patch Set 6 : added condition to rounding #
Total comments: 4
Patch Set 7 : rebased #Patch Set 8 : comment fixed #
Messages
Total messages: 27 (0 generated)
|