Open GoogleCodeExporter opened 9 years ago
The test file is attached here.
Original comment by apsill...@gmail.com
on 6 Mar 2012 at 2:50
Attachments:
Sorry -- I'm using the latest 1.x, not 2.0rc1, and my test does as well.
Original comment by apsill...@gmail.com
on 6 Mar 2012 at 4:57
confirmed here : Opera 12.00 build 1325 and Opera 11.61 stable
Original comment by ishak.nu...@gmail.com
on 7 Mar 2012 at 10:27
If you replace line 6171
ctx.fillText(this.text, this.cx, this.cy, this.maxWidth)
with this:
if(this.maxWidth)
ctx.fillText(this.text, this.cx, this.cy, this.maxWidth)
else
ctx.fillText(this.text, this.cx, this.cy);
it works again.
Original comment by mtoro...@gmail.com
on 26 Mar 2012 at 1:38
here is drawHTML5 function with support for baseline, align and stroke:
drawHTML5 : function(ctx) {
ctx.textBaseline = this.baseline
ctx.textAlign = this.align
if(this.maxWidth) {
if(this.stroke && this.strokeMode == 'below')
ctx.strokeText(this.text, this.cx, this.cy, this.maxWidth)
ctx.fillText(this.text, this.cx, this.cy, this.maxWidth)
if(this.stroke && this.strokeMode == 'above')
ctx.strokeText(this.text, this.cx, this.cy, this.maxWidth)
}
else {
if(this.stroke && this.strokeMode == 'below')
ctx.strokeText(this.text, this.cx, this.cy)
ctx.fillText(this.text, this.cx, this.cy);
if(this.stroke && this.strokeMode == 'above')
ctx.strokeText(this.text, this.cx, this.cy)
}
},
Original comment by ishak.nu...@gmail.com
on 5 Apr 2012 at 1:11
I wanted to thank the last 2 comments for helping me out. Applying the patch
from command #4 solved my problem exactly.
Original comment by ETo...@gmail.com
on 18 May 2012 at 9:53
Original issue reported on code.google.com by
apsill...@gmail.com
on 6 Mar 2012 at 2:44