oftn-oswg / suit-js

A slick user-interface toolkit created in JavaScript for use with HTML5 canvas.
http://oftn.org/projects/suit/
Other
10 stars 1 forks source link

Text is clipped if it spills outside the widget allocation #2

Closed dsamarin closed 13 years ago

dsamarin commented 13 years ago

Letter descenders go outside of the bounds of its allocation. This can be fixed by figuring out a way to get the normal line-height for a given font and size. This information would be used in the request for the widget height. A known problem is that Firefox doesn't align the text correctly (Top of text is too low). There is no way I know around this.

dsamarin commented 13 years ago

Fixed, labels not are not clipped to their allocation since they don't have their own suit.Window. In the near future Labels will render text with the browsers' native text rendering facilities, which will also let you select text natively.