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

Unified Diff: ui/gfx/font.cc

Issue 789583002: Updates subpixel positioning and hinting when DSF is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Created 6 years 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/font.cc
diff --git a/ui/gfx/font.cc b/ui/gfx/font.cc
index 1b5f1d8189a7ef8b9f4c246c4b619d4fa4cb4d60..8e9631b3bee16286bec4c41f1066faa513eeb744 100644
--- a/ui/gfx/font.cc
+++ b/ui/gfx/font.cc
@@ -74,8 +74,13 @@ int Font::GetFontSize() const {
return platform_font_->GetFontSize();
}
-const FontRenderParams& Font::GetFontRenderParams() const {
- return platform_font_->GetFontRenderParams();
+FontRenderParams Font::GetFontRenderParams() const {
+ FontRenderParams params = platform_font_->GetFontRenderParams();
+ gfx::FontRenderParamsRewriter* rewriter =
+ gfx::FontRenderParamsRewriter::GetInstance();
+ if (rewriter)
+ rewriter->RewriteParams(&params);
+ return params;
}
NativeFont Font::GetNativeFont() const {
« no previous file with comments | « ui/gfx/font.h ('k') | ui/gfx/font_render_params.h » ('j') | ui/gfx/font_render_params.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698