Why does the canvas not do anything for fillText(text, 0,0) but works for fillText(text, 10, 10)?
fillText(text, 0,0): http://jsfiddle.net/kFhQm/4/
fillText(text, 10, 10): http://jsfiddle.net/kFhQm/5/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The second argument is the Y coordinate for the baseline of the text (the default
textBaselineis"alphabetic"), so the text is being drawn above the visible
canvaselement when you use0.jsFiddle.
You could use a different number or alternatively, change the
textBaselineproperty to something suitable, such as"top".jsFiddle.