|
Updates subpixel positioning and hinting when DSF is changed
See the bug to see the screenshot of problematic rendering
and the result of this fix.
There are several TODOs though:
- Renderers still remember the old font params.
- Changing hinting params will change the bounding box of the
text, which means we should re-layout several views. This will
be addressed by other CLs.
- Ideally, the font render params should change based on the display
where the text is rendered.
BUG= 441439
R=oshima@chromium.org, derat@chromium.org, msw@chromium.org
TEST=the new test case covers
Committed: https://crrev.com/5dad2e71ac9f6b229590e23d2ddfef99dceb11b9
Cr-Commit-Position: refs/heads/master@{#308462}
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+102 lines, -32 lines) |
Patch |
 |
M |
ash/display/display_manager.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/display/display_manager.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ash/display/display_manager_unittest.cc
|
View
|
1
2
3
4
|
8 chunks |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shell.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/font_render_params.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/font_render_params.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/font_render_params_linux.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+24 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_ios.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_ios.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_mac.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_mac.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_pango.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_pango.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_win.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/platform_font_win.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 19 (4 generated)
|