mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-03 11:34:41 +00:00
strokeText bugfix for Firefox < 4
This commit is contained in:
parent
564e37eb5f
commit
aefa280bb3
1 changed files with 2 additions and 0 deletions
|
|
@ -395,6 +395,7 @@
|
|||
*/
|
||||
_renderTextStroke: function(ctx, textLines) {
|
||||
if (this.strokeStyle) {
|
||||
ctx.beginPath();
|
||||
for (var i = 0, len = textLines.length; i < len; i++) {
|
||||
ctx.strokeText(
|
||||
textLines[i],
|
||||
|
|
@ -402,6 +403,7 @@
|
|||
(-this.height / 2) + (i * this.fontSize * this.lineHeight) + this.fontSize
|
||||
);
|
||||
}
|
||||
ctx.closePath();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue