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

Unified Diff: ui/gfx/platform_font_pango.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/platform_font_pango.cc
diff --git a/ui/gfx/platform_font_pango.cc b/ui/gfx/platform_font_pango.cc
index 1cac87ad29d65667f814720bc5890a7d3812898b..aebc0b332eef4ff01f5237cc73550fd0cfb3d417 100644
--- a/ui/gfx/platform_font_pango.cc
+++ b/ui/gfx/platform_font_pango.cc
@@ -113,7 +113,8 @@ PlatformFontPango::PlatformFontPango(NativeFont native_font) {
query.style |= gfx::Font::ITALIC;
std::string font_family;
- const FontRenderParams params = gfx::GetFontRenderParams(query, &font_family);
+ const FontRenderParams params =
+ gfx::GetSystemFontRenderParams(query, &font_family);
InitFromDetails(skia::RefPtr<SkTypeface>(), font_family,
gfx::GetPangoFontSizeInPixels(native_font),
query.style, params);
@@ -126,7 +127,7 @@ PlatformFontPango::PlatformFontPango(const std::string& font_name,
query.pixel_size = font_size_pixels;
query.style = gfx::Font::NORMAL;
InitFromDetails(skia::RefPtr<SkTypeface>(), font_name, font_size_pixels,
- query.style, gfx::GetFontRenderParams(query, NULL));
+ query.style, gfx::GetSystemFontRenderParams(query, NULL));
}
////////////////////////////////////////////////////////////////////////////////
@@ -162,8 +163,9 @@ Font PlatformFontPango::DeriveFont(int size_delta, int style) const {
query.pixel_size = new_size;
query.style = style;
- return Font(new PlatformFontPango(typeface, new_family, new_size, style,
- gfx::GetFontRenderParams(query, NULL)));
+ return Font(
+ new PlatformFontPango(typeface, new_family, new_size, style,
+ gfx::GetSystemFontRenderParams(query, NULL)));
}
int PlatformFontPango::GetHeight() const {

Powered by Google App Engine
This is Rietveld 408576698