Skip to content

Commit

Permalink
Request slight hinting when rendering glyphs with Skia (flutter#4307)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Nov 1, 2017
1 parent fd47881 commit d6dd5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sky/engine/platform/fonts/linux/FontPlatformDataLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

namespace blink {

static SkPaint::Hinting skiaHinting = SkPaint::kNormal_Hinting;
static SkPaint::Hinting skiaHinting = SkPaint::kSlight_Hinting;
static bool useSkiaAutoHint = true;
static bool useSkiaBitmaps = true;
static bool useSkiaAntiAlias = true;
Expand Down
1 change: 1 addition & 0 deletions third_party/txt/src/txt/paragraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ void Paragraph::Layout(double width, bool force) {
paint.setAntiAlias(true);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
paint.setSubpixelText(true);
paint.setHinting(SkPaint::kSlight_Hinting);

records_.clear();
line_heights_.clear();
Expand Down

0 comments on commit d6dd5b1

Please sign in to comment.