Constrained height and width of text visibility and trimming