2009-04-21

Text support on trunk

Thanks to Fabien Menager we now support drawing text in Explorer Canvas. You can now use the following methods: fillText, strokeText and measureText.

The implementation uses VML text paths which allows text to be drawn on any path. For canvas we don't really need to support text on arbitrary paths so we just use a simple VML line element here.

Scaling is currently not working correctly but we know how to fix that and we expect to have that fixed within a few days.

The code is based on Canvas Text, another open source project by Fabien which adds text support for old browsers that have canvas without text support.

8 comments:

  1. Great! Any plans to release a new version when this feature is finished?

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Really nice, I was using the release version and was thinking of implementing text support, since it was essential to the project I'm doing. This saves me *a lot* of work... =D
    And how is the progress with scaling? Thanks for making what Microsoft should be doing...

    ReplyDelete
  4. Hi Erik,

    I have just done a performance comparis between VML and silverlight excanvases which I though you may be interested in:

    http://www.picnet.com.au/blogs/Guido/post/2010/03/15/Google-Explorercanvas-(excanvas)-for-IE-Silverlight-vs-VML.aspx

    Thanks

    Guido

    ReplyDelete
  5. Dear Erik,
    I would like to thank you for your work. With your latest version (73) of excanvas, it does exactly what I whant.
    As a web enthousiast, I am delighted to see that finally some thing that thought of making works CROSS bouwser.
    Tanks.

    ReplyDelete
  6. Dear Erik,

    I downloaded the latest, but fillText isn't there. Is that feature simply not released yet, or am I doing something wrong? I'm using canvas.

    Thanks,
    Chris

    ReplyDelete
  7. It would be smart for you guys to post some examples on your site.

    ReplyDelete