Get length of string on screen in pixel

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fullmontis

I was wondering if it was possible to find the length of a string drawn with a DynamicFont on screen before it is actually drawn. I’ve been looking through the API, and I’ve been unable to find anything that could help me. Is there a function/workaround to find this?