How to calculate actual Label text bounding box

You can refer to this post for options.