Well... This might not exactly be a bug, but it is
defenetely a thing that need to be fixed!
Atm, if you use the label object, you have to specify
font sizes with the old style (1, 2, 3 etc). These
values are terribly inexact and do not look the same
in all browsers. Why don't you use the css attributes
instead?
I myself changed line 64 to look like this instead
(not much better, but at least you can use standard
css values):
var styled = '<span style="font-
size:'+this.font.size+'; font-
family:'+this.font.family+';
color:'+this.font.color+'; font-weight:'+
((this.font.bold)?'bold':'normal')+'; font-style:'+
((this.font.italic)?'italic':'normal')
+';">'+this.text+'</span>';
A more robust solution would be the goal, but this at
least is a start. Also a question to round up with:
Why is the 'object.css" class availible in Label.js?
I made an extention for the normal DynLayer for a few
styles, but they do not work with Label.js.
//Victor