How to get and set TextNode element's size and font?

I tried a lot of way to do that,but still failed.

TextNode element has not got the width,height and font properties.

Who can help? Thanks.