Is there a method to measure (in pixel) width and height of an expression without making it to an Image ?
I found a method for measuring width and height of an expression in this forum,
but it uses Rasterize and ImageDimensions.
It means it uses unnecessary CPU or RAM resources.
Also it is less intuitive. Moreover, I think MMA FrontEnd already knows the answer!
If you double click the expression, MMA FrontEnd highlights the boundary of the expression in blue.
It means MMA FrontEnd knows the answer before making it into an image.

Rasterize[Style[x^2+y^2,40], "RasterSize"]? – kglr Jun 09 '23 at 13:02Timing. The test compares the performance of"RasterSize"option technique VSRasterize+ImageDimensionstechnique, and there was little difference. So it may be appropriate to conclude there is no fast way to measure width/height without (essentially) making it into an image. – imida k Jun 09 '23 at 13:16