Descriptionfix the rendering error for drawPosText_asPaths
A big thick-stroke text(>256*256, strokeWidth>0) is drawn on the basis of canonical text in drawPosText_asPaths. This
behavior is the same with drawText_asPaths. So the textSize as well as strokeWidth in drawPosText_asPaths should be set
as those in drawText_asPaths. After SkGlyphCache has been detached and constructed, the SkPaint should be set to
kFill_Style to draw the correct path for the text, as that in drawText_asPaths.
In addtion, PathEffect installed in SkPaint should be considered, who affects the path generation for text.
Current implementation of SkDraw::drawPosText_asPaths didn't consider this. As a result, big text and hairline stroked
text with path effect is not correctly rendered by SkCanvas::drawPosText. This patch also fixed this issue.
BUG=skia:2547, skia:2555
BUG=280221, 311731
@reed has landed a patch to fix the issues above: https://codereview.chromium.org/288983004/. So close this one.
Patch Set 1 : #Patch Set 2 : also fix the rendering error for text with path effects #
Messages
Total messages: 13 (0 generated)
|