summaryrefslogtreecommitdiffstats
path: root/ui/gfx/render_text_win.cc
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-15 16:13:08 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-15 16:13:08 +0000
commit4eced6796a3c2fedcf2cf46701f138ddc16497a8 (patch)
tree596ff77070fefe83382518d93d26ffb8adf46032 /ui/gfx/render_text_win.cc
parenta7d127cfd6f62cdfc15d1a6bee380ba41905469f (diff)
downloadchromium_src-4eced6796a3c2fedcf2cf46701f138ddc16497a8.zip
chromium_src-4eced6796a3c2fedcf2cf46701f138ddc16497a8.tar.gz
chromium_src-4eced6796a3c2fedcf2cf46701f138ddc16497a8.tar.bz2
Only use subpixel-positioned text in UI when requested.
Update SkiaTextRenderer to explicitly take a |subpixel_positioning| parameter. Previously, it requested subpixel positioning whenever antialiasing was enabled, which prevented users' strong-hinting settings from being honored. BUG=318395 Review URL: https://codereview.chromium.org/166673005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text_win.cc')
-rw-r--r--ui/gfx/render_text_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc
index 0f880c1..04e83cc 100644
--- a/ui/gfx/render_text_win.cc
+++ b/ui/gfx/render_text_win.cc
@@ -800,7 +800,8 @@ void RenderTextWin::DrawVisualText(Canvas* canvas) {
GetCachedFontSmoothingSettings(&smoothing_enabled, &cleartype_enabled);
// Note that |cleartype_enabled| corresponds to Skia's |enable_lcd_text|.
renderer.SetFontSmoothingSettings(
- smoothing_enabled, cleartype_enabled && !background_is_transparent());
+ smoothing_enabled, cleartype_enabled && !background_is_transparent(),
+ smoothing_enabled /* subpixel_positioning */);
ApplyCompositionAndSelectionStyles();