How to identify if the text is displayed in single line or multiple lines

How to identify if the text is displayed in single line or multiple lines.
.getTex() fetches the Text displayed and we can verify is the text is fully displayed or truncated.
But is there a way to check if the text is displayed in one line or is wrapped and displayed in multiple lines?

Perhaps by taking the screenshot of the text container and analysing it using some OCR algorithms.

Thanks for input… will try that…
As of now i tried this:
Actually my task is to check the mobile app in multiple languages, so i wanted to verify two things(1. Text is fully displayed, 2. It is displayed in a single line and not wrapped and displayed in multiple line)
So getting the height of each object/text and comparing it to the height of the object/text in English language.