Fix for TextPath shadow. SHadow was only added for first character.

This commit is contained in:
David Johansson
2012-09-24 19:35:11 +02:00
parent a349fa488c
commit 2c937362b7
3 changed files with 18 additions and 4 deletions

View File

@@ -52,7 +52,14 @@ Kinetic.TextPath.prototype = {
var glyphInfo = this.glyphInfo;
var appliedShadow = this.appliedShadow;
for(var i = 0; i < glyphInfo.length; i++) {
/*
* need to reset appliedShadow flag so that shadows
* are appropriately applied to each line of text
*/
this.appliedShadow = appliedShadow;
context.save();
var p0 = glyphInfo[i].p0;