`DisplayDimension` bounding box with API

I encountered a similar problem when dealing with this problem. It was related to font height and font width, but the calculated result was not very accurate. Fortunately, the font I used was fixed. I used GetTextInBoxHeightAtIndex and GetTextInBoxWidthAtIndex to offset the value obtained by GetPosition.

1 Like