Bugs item #465777, was opened at 2001-09-27 12:38
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=465777&group_id=5757
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Victor Str�m (victor84)
Assigned to: Nobody/Anonymous (nobody)
Summary: Font attributes in gui/label.js
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=465777&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-dev