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

Unified Diff: ui/gfx/render_text_win.cc

Issue 382273002: ui/gfx: Allow for font-specific rendering settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback 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/platform_font_pango.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 cb80ef2c71a5cf10439159e3a4b4a0e8a961c7bb..a2406a2e0b8d6c2dff381c10c702b1c6610c1f9b 100644
--- a/ui/gfx/render_text_win.cc
+++ b/ui/gfx/render_text_win.cc
@@ -809,8 +809,9 @@ void RenderTextWin::DrawVisualText(Canvas* canvas) {
ApplyFadeEffects(&renderer);
ApplyTextShadows(&renderer);
- renderer.SetFontRenderParams(GetDefaultFontRenderParams(),
- background_is_transparent());
+ renderer.SetFontRenderParams(
+ font_list().GetPrimaryFont().GetFontRenderParams(),
+ background_is_transparent());
ApplyCompositionAndSelectionStyles();
« ui/gfx/platform_font_pango.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