DescriptionRound 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201592
Patch Set 1 #Patch Set 2 : Add test #Patch Set 3 : Round bounds too if !isSubpixelText() #Patch Set 4 : NeedsRebaseline #
Total comments: 1
Patch Set 5 : round to roundOut #Patch Set 6 : NeedsRebaseline after roundOut #Patch Set 7 : Rebase #Patch Set 8 : Split SimpleFontData change to a separate CL #
Total comments: 1
Patch Set 9 : eae nits #
Messages
Total messages: 14 (5 generated)
|