For example I have a paragraph
<p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat</p>
And I also have defined its style in css
.text { width:20em; }
The text align is not justified, so the width of each line may not be the same.
Now how can I calculate the width of each line separately?