Index: src/core/SkDraw.cpp |
=================================================================== |
--- src/core/SkDraw.cpp (revision 9039) |
+++ src/core/SkDraw.cpp (working copy) |
@@ -1427,7 +1427,13 @@ |
SkScalar xpos, prevXPos = 0; |
while (iter.next(&iterPath, &xpos)) { |
- matrix.postTranslate(xpos - prevXPos, 0); |
+ SkScalar delta = xpos - prevXPos; |
bungeman-skia
2013/05/10 22:30:36
This is probably a bad solution, it's rather stran
|
+ if (paint.isVerticalText()) { |
+ matrix.postTranslate(0, delta); |
+ } else { |
+ matrix.postTranslate(delta, 0); |
+ } |
+ |
if (iterPath) { |
const SkPaint& pnt = iter.getPaint(); |
if (fDevice) { |