Alternative for text positioning

No more dom required to calculate the font size.
Update Text.js
Merge pull request #1067 from SebastianNette/patch-6

Alternative for text positioning