The Ashes

Technology, Science and other news
April 9, 2009

canvas-text: Add text functions to subpar canvas implementations

Posted by : admin
Filed under : General

Fabien Ménager has created an interesting new library called canvas-text that simply “adds the three canvas text functions (strokeText, fillText and measureText) to the canvas implementation of the browsers which don’t already have these functions (Firefox 2/3.0, Internet Explorer 6+, Opera 9+, Safari 3, Chrome 1.0). It doesn’t change the already implemented functions in Firefox 3.1+, Safari 4 and Chrome 2.”

Having the methods work is one thing, but what about the performance?

Well, there are some interesting examples for you to test:

I talked to Fabien about performance and he shed some more light:

The only bad performance issues are the font face download, JSON eval,
and data parsing. I try to use a cache when possible, but it’s not
always possible.

A workaround would be to have two font face files : a full one, with
lots of characters, and a reduced one, with only the common ones. The
browser cache does the rest for the font face file download
(downloaded via Ajax or a script tag).

For IE, I think I’ll have to make a VML renderer for IE that wouldn’t send the
instructions to ExCanvas but would work directly on the VML.

Obviously, this is something I really want to play with and see how far we can get with this type of thing and Bespin. It is very much in an alpha state right now, but looking good.

Tags :

No Comments

(required)
(will not be published) (required)
(opitional)

cciash.com EN ES IT DE PT CZ FR RU
February 2018
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728  

Pages

Categories

Resources

There are many online poker site where you can play but at poker.hk you can play the poker games with all the knowledge you need related to the game with the poker school available in both the English and Chinese language.

Super Casino

Now you can bet on any sports and any sporting events from all the comfort from your home. Bet770 allows you to bet on any events and match with in just 3 clicks. They also offers great odds on football betting for every premier and champions league match. Get £50 free in bets when you register.

Bingo770, offering best online bingo games with £7.70 free no deposit Bonus!