2014-09-12 8 views

Odpowiedz

11

Tak, strokeTekst faktycznie obrysuje kontur liter, natomiast fillText wypełnia wnętrze liter.

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

ah super, myślę, że był po prostu tworzenie tekstów zbyt mały, aby zauważyć właściwość strokeText. Dzięki. – Hoffmann