Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: ui/gfx/render_text_win.cc

Issue 385463002: Support FontRenderParams on Win; fix RenderTextHarfBuzz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header guards. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/font_render_params_win.cc ('K') | « ui/gfx/render_text_pango.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_win.cc
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc
index f79577fde0aa9314cd61ddd7b5f209ee71ae1ae4..cf673c570c2b95ce50ca9b71666b562ea3c49eef 100644
--- a/ui/gfx/render_text_win.cc
+++ b/ui/gfx/render_text_win.cc
@@ -16,7 +16,7 @@
#include "third_party/icu/source/common/unicode/uchar.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font_fallback_win.h"
-#include "ui/gfx/font_smoothing_win.h"
+#include "ui/gfx/font_render_params.h"
#include "ui/gfx/platform_font_win.h"
#include "ui/gfx/utf16_indexing.h"
@@ -809,13 +809,8 @@ void RenderTextWin::DrawVisualText(Canvas* canvas) {
ApplyFadeEffects(&renderer);
ApplyTextShadows(&renderer);
- bool smoothing_enabled;
- bool cleartype_enabled;
- 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 /* subpixel_positioning */);
+ renderer.SetFontRenderParams(GetDefaultFontRenderParams(),
+ background_is_transparent());
ApplyCompositionAndSelectionStyles();
« ui/gfx/font_render_params_win.cc ('K') | « ui/gfx/render_text_pango.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698