get pixel 2d text size


#1

I created some text under get_pixel_2d and would like to retrieve the text size and location, preferably in pixels. Does anyone know how to do it?
I’ve attached my test program and a screenshot. The red rectangle was added with gimp and it what I’m trying to find the location and size of, given the “Some Text String” object.
I’m using panda 1.9.4
Thanks


pandatext.cpp (1.24 KB)