http://developer.longtailvideo.com/trac/browser/trunk/jw6/src/flash/com/longtailvideo/jwplayer/view/components/DisplayIcon.as#L209

Should be doable using measureText().width