Calculates text dimensions based on a specific control or with default settings.

app.GetTextBounds( txt, size, width, obj ) → Object: { width, height }