Hi,

I'm looking at diagramming using the html 5 canvas element.

In addition I would like to overlay text and annotations, some of

which will be mathematical. In order to implement

accurate positioning of text I need text metric information.

Is there some way of getting this from a string in tex format.

Presumably it would need to

be parsed/formatted first and then some kind of

measureText call would give dimensions. The information

can be used for accurate placement or collision detection

of mathematical annotations.

Any help or pointers on how I might

do this greatly appreciated.

Thanks

Mike