title: Calculate text size before inserted to DOM
body: <p>Is this possible to calculate height of the text BEFORE it is inserted into DOM?
  Width of the div container is known, but I need a way to calculate its height before it is inserted.
  The heights of the one line of text is also known (css), so the height could be calculated by multiplying the height of one line by the amount of lines, but the question is if this is possible to calculated BEFORE it's DOM.</p>