How to Detect overflow in TextWidget

Product: @pdftron/pdfnet-node

Product Version: “^9.3.0”

What would be the most efficient way to detect text overflow in a widget that is not multiline, ie:

Thank you for contracting us about this. Just to get a better understanding of your issue, can I ask why detecting text overflow is important for your use case? How does this requirement fit in your application workflow?

An annotation would be applied to any field with overflow.