I'm using RaphaelJS for visually representing some data. The underlying technology is SVG so obviously things don't always work that well in IE, but the library does a relatively ok job of still rendering something useful, although it often tends to look pretty poor.
In any case, I can't seem to get around this basic issue. Text is rendered fine in Chrome or FireFox, but everything renders as bold and italic in IE8.
To see my issue in action, go to the RaphaelJS playground and use the following code
paper.text(100, 100, "this is the text")
Here is the result in Chrome and IE.
Is there any workaround for this?
.text()
is a Raphael feature that just doesn't work as expected, and that it's been unofficially dumped on the expectation that people will use.print()
instead. It also seems that to use.print()
you must have your font as a 'cufon font' (i.e. javascript format), which may violate the licence for some fonts. Basically, it seems like text in Raphael is (as of 2.1.0) a bit of a mess. – Danas