Formatting the Font of the Text added to a Rectangle

How can I assign a particular font and change the font size of the text displayed in a Rectangle.

Please check demos and programmers guide in the Wiki at first.

It has many examples.