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

Unified Diff: ui/gfx/platform_font_win.cc

Issue 382273002: ui/gfx: Allow for font-specific rendering settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff against https://codereview.chromium.org/387743002/ 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
Index: ui/gfx/platform_font_win.cc
diff --git a/ui/gfx/platform_font_win.cc b/ui/gfx/platform_font_win.cc
index f01399406fcc1c2731af345d0f1e36eb2e83d8f5..9f61db39bc7caff325da65a8f41d1d19c6e60eea 100644
--- a/ui/gfx/platform_font_win.cc
+++ b/ui/gfx/platform_font_win.cc
@@ -20,6 +20,7 @@
#include "base/win/win_util.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font.h"
+#include "ui/gfx/font_render_params.h"
#include "ui/gfx/win/scoped_set_map_mode.h"
namespace {
@@ -191,6 +192,10 @@ int PlatformFontWin::GetFontSize() const {
return font_ref_->font_size();
}
+const FontRenderParams& PlatformFontWin::GetFontRenderParams() const {
+ return GetDefaultFontRenderParams();
msw 2014/07/12 00:27:33 nit: Can we have a static (lazy init) struct to re
msw 2014/07/12 00:27:33 Should there be a TODO here for any per-font setti
Daniel Erat 2014/07/12 01:55:33 the windows implementation of GetDefaultFontRender
Daniel Erat 2014/07/12 01:55:33 i wasn't sure if windows supports this. font_rende
msw 2014/07/12 02:26:41 Ah, right.
msw 2014/07/12 02:26:41 Perhaps it's not supported, it's fine as-is withou
+}
+
NativeFont PlatformFontWin::GetNativeFont() const {
return font_ref_->hfont();
}

Powered by Google App Engine
This is Rietveld 408576698