Drawing text that fits inside a rectangle exactly