text width and height index