diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-19 17:03:43 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-20 10:11:53 +0200 |
commit | bd04cc312a5bc7b454d2aba317f3357b367a6d34 (patch) | |
tree | 3df37ba3cc2ef60c666fc13fccd7a4a5f47cadf0 | |
parent | eb0060c530cf870b43f4c76b2e339a943e06db40 (diff) | |
download | qtwebengine-chromium-bd04cc312a5bc7b454d2aba317f3357b367a6d34.tar.gz |
<chromium> Fix medium hinting on Linux with fontconfig and freetype
Skia freetype will enforce slight hinting in SkTypeface_FreeType::onFilterRec
when subpixel positioning is enabled. To avoid overriding medium hinting
with slight, we should not enable subpixel positioning for medium hinting
similar to how it is avoided for full hinting as well.
Change-Id: I4a229cf2b8827c11f33789d1c35c2d0eaeaed0ae
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
-rw-r--r-- | chromium/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp b/chromium/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp index c05fa20be98..430f6b756ef 100644 --- a/chromium/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp +++ b/chromium/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp @@ -83,7 +83,7 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext*) const // TestRunner specifically toggles the subpixel positioning flag. if (RuntimeEnabledFeatures::subpixelFontScalingEnabled() - && paint->getHinting() != SkPaint::kFull_Hinting + && paint->getHinting() < SkPaint::kNormal_Hinting && !isRunningLayoutTest()) paint->setSubpixelText(true); else |