Round glyph width and bounds if !SkPaint.isSubpixelText() in complex path
This patch fixes HarfBuzzFace to round widths and bounds of glyphs when SkPaint.isSubpixelText() is false. SimpleFontData::platformWidthForGlyph() and platformBoundsForGlyph() have this rounding. This difference in HarfBuzzFace caused poor text positioning only in complex path. Unlike SimpleFontData that uses round() for glyphBounds, this CL uses roundOut() to avoid possible glyph rendering outside the visual overflow rect. The same fix for SimpleFontData is in a separate CL[1]. [1] https://codereview.chromium.org/1326563003/ BUG=452914 Review URL: https://codereview.chromium.org/1316843005 git-svn-id: svn://svn.chromium.org/blink/trunk@201592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment