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

Unified Diff: Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp

Issue 369673003: Disable subpixel text on linux systems with full_hinting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp
diff --git a/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp b/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp
index 0ffd78336b104008cdee59867b17df3d2b02ff98..c05fa20be983c736f2856d32753008c565510dbc 100644
--- a/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp
+++ b/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp
@@ -82,7 +82,9 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext*) const
paint->setLCDRenderText(m_style.useSubpixelRendering);
// TestRunner specifically toggles the subpixel positioning flag.
- if (RuntimeEnabledFeatures::subpixelFontScalingEnabled() && !isRunningLayoutTest())
+ if (RuntimeEnabledFeatures::subpixelFontScalingEnabled()
+ && paint->getHinting() != SkPaint::kFull_Hinting
+ && !isRunningLayoutTest())
paint->setSubpixelText(true);
else
paint->setSubpixelText(m_style.useSubpixelPositioning);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698