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

Unified Diff: ui/gfx/render_text_harfbuzz.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
« ui/gfx/font_render_params.h ('K') | « ui/gfx/platform_font_win.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_harfbuzz.cc
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
index 508655b61bf2c04b773b3ab34014bac55d5511b8..9a315b4beba6c8243f413a2684036fd9608544b0 100644
--- a/ui/gfx/render_text_harfbuzz.cc
+++ b/ui/gfx/render_text_harfbuzz.cc
@@ -1162,7 +1162,8 @@ void RenderTextHarfBuzz::ShapeRun(internal::TextRunHarfBuzz* run) {
query.families.push_back(family);
query.pixel_size = run->font_size;
query.style = run->font_style;
- FontRenderParams fallback_render_params = GetFontRenderParams(query, NULL);
+ FontRenderParams fallback_render_params =
+ GetCurrentFontRenderParams(query, NULL);
if (CompareFamily(run, family, fallback_render_params, &best_family,
&best_render_params, &best_missing_glyphs))
return;
« ui/gfx/font_render_params.h ('K') | « ui/gfx/platform_font_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698