From 4eced6796a3c2fedcf2cf46701f138ddc16497a8 Mon Sep 17 00:00:00 2001 From: "derat@chromium.org" Date: Sat, 15 Feb 2014 16:13:08 +0000 Subject: 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 --- ui/gfx/render_text_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/gfx/render_text_win.cc') 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(); -- cgit v1.1