The height of a string is just the number of lines multiplied with the font size. Only the width is complicated to calculate, that's why we only have a width function.