added getTextDimension for easy text aligning on UI