So, I have HTML text displayed in a browser (in this case, Android WebView). I want to know what location (x, y) in pixels of any line of text AFTER it is displayed. The working definition of the line I'm using is not just the text contained in the tag <p>or that appears before the tag <br>. I mean the line as it seems to the user.
I am open to any proposed method.
Is there any CSS property that you can find the number of lines in a div and their respective heights? This would provide an acceptable solution.
Thank!!
source
share