Chromium Code Reviews| 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(); |
| } |