<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span>No one else thought this was cool?</span></div><div><span></span></div><div><br></div>  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Jason H <scorp1us@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Interests Qt <interest@qt-project.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, March 28, 2012 2:24 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Interest] HTML5 canvas support?<br> </font> </div> <br>
<br><br>I think we should be able to paint to a HTML5 canvas.<br><br>I created the attached PoC, modeled after QPicture. See main.cpp for an example.<br><br><br>The code is released with the following license: <br><br>USE: Use at your own risk. Use it as you wish with no warranties or fitness expressed or implied. <br>COPYING/DISTRIBUTION: Don't claim the original code is yours, that would  be wrong. Please attribute the original code to me. (It's a resume thing) It is your responsibility to put my email address in the file headers. You may use the code in Open and Closed Source projects, and assign what ever license and copyright as you wish. I don't assert any copyright, just credit.<br><br>Details:<br>The rendering is "pretty good" I've noticed fonts are not pixel-perfect but pretty close. The HTML5 canvas system (at least in FireFox) needs a 0.5px offset to generate a line properly, so things may be a tad off.<br><br>If you browser supports HTML
 I'm attaching sample output. (123.html)<br><br>I'd love to see how you use this. Feel free to show me.<br><br>_______________________________________________<br>Interest mailing list<br><a ymailto="mailto:Interest@qt-project.org" href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br><a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br><br><br> </div> </div>  </div></body></html>