Reworked setType to have dynamic line-height