I have been trying to make text notification in which i am using 2dtoolkit text and 2dtoolkit tiled sprite as background the problem is i need to scale my background according to the dimensions of the text but i could not find a way to calculate the height and width of the text.