Commit bd04cc31 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

<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: default avatarPierre Rossi <pierre.rossi@gmail.com>
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment