[whatwg] Canvas lack of drawString method

Gervase Markham gerv at mozilla.org
Tue Oct 24 02:35:00 PDT 2006


David Hyatt wrote:
> and then the API would be something like:
> 
> drawText(y-coord of baseline, "barchart", myText)

I like this idea :-)

At the risk of overcomplicating, vertical text is a common requirement 
for graphs and charts. If this is simpler to implement than the 
"arbitrary text rotation" case, is it worth having a way of saying the 
baseline is vertical rather than horizontal? Or would this be a job for 
fitTextToPath()?

Gerv




More information about the whatwg mailing list