Hello Gervase,<br><br>+1 for drawElement(e)<br><br>(A drawElement(e) procedure sounds like a really good idea.)<br><br><div><span class="gmail_quote">On 10/18/06, <b class="gmail_sendername">Gervase Markham</b> <<a href="mailto:gerv@mozilla.org">
gerv@mozilla.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alfonso Baqueiro wrote:<br>> The canvas component is very promising, but the lack of drawString
<br>> method could be a great error for its success, this lack is a huge<br>> limitation, how could you resolve this problem?<br><br>I've suggested this in the past as a solution to this problem: why not<br>have a drawElement(elem) parameter?
<br><br>That way, you could build an accessible, readable version of the content<br>inside the <canvas> tag, as alternative content, and copy labels or<br>anything else into the <canvas> itself with drawElement(label). So the
<br>same content serves both as the accessible version and the used version.<br><br>This would give us great flexibility, because the text you do have is<br>controlled with all the power of the existing CSS and browser font
<br>model, obviating the need for font controls or font objects on the<br><canvas> API - which would inevitably be not as good as the CSS ones.<br>And if browsers acquire downloadable font support, so does canvas.<br>
<br>I would speculate wildly that it might even be easy to implement too.<br>After all, I'm sure browsers have the ability to render the contents of<br>a <div> tag to a drawing buffer...<br><br>Gerv<br></blockquote>
</div><br><br clear="all"><br><span style="font-family: courier new,monospace;">-- </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Charles Iliya Krempeaux, B.Sc
.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> charles @ <a href="http://reptile.ca">reptile.ca</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> supercanadian @ <a href="http://gmail.com">gmail.com</a></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
developer weblog: <a href="http://ChangeLog.ca/">http://ChangeLog.ca/</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><br></span><span style="font-family: courier new,monospace;">
</span>