2014-09-12 75 views

回答

11

是的,strokeText實際上描繪了字母的輪廓,而fillText填充了字母的內部。

enter image description here

ctx.fillStyle='red'; 
ctx.strokeStyle='green' 
ctx.lineWidth=3; 
ctx.font='90px verdana'; 
ctx.fillText('Q',50,150); 
ctx.strokeText('Q',125,150); 
ctx.fillText('Q',200,150); 
ctx.strokeText('Q',200,150); 
+1

啊冷靜,我想我只是在創造文字太小,無法注意到strokeText財產。謝謝。 – Hoffmann 2014-09-12 21:29:34