Chromium Code Reviews| Index: ui/gfx/render_text_win.cc |
| =================================================================== |
| --- ui/gfx/render_text_win.cc (revision 121717) |
| +++ ui/gfx/render_text_win.cc (working copy) |
| @@ -11,6 +11,7 @@ |
| #include "base/stl_util.h" |
| #include "base/string_util.h" |
| #include "base/utf_string_conversions.h" |
| +#include "ui/gfx/font_smoothing_win.h" |
| #include "ui/gfx/screen_compatible_dc_win.h" |
| #include "ui/gfx/canvas.h" |
| #include "ui/gfx/canvas_skia.h" |
| @@ -439,6 +440,11 @@ |
| internal::SkiaTextRenderer renderer(canvas); |
| ApplyFadeEffects(&renderer); |
| + bool smoothing_enabled; |
| + bool cleartype_enabled; |
| + GetCachedFontSmoothingSettings(&smoothing_enabled, &cleartype_enabled); |
| + renderer.SetFontSmoothingSettings(smoothing_enabled, cleartype_enabled); |
|
msw
2012/02/15 00:33:16
Perhaps comment on how enable_lcd_text == cleartyp
asvitkine_google
2012/02/15 15:10:44
Done.
|
| + |
| for (size_t i = 0; i < runs_.size(); ++i) { |
| // Get the run specified by the visual-to-logical map. |
| internal::TextRun* run = runs_[visual_to_logical_[i]]; |