dc.getTextDimentions() returns size with padding, how do I get the size and location of a string without the padding?

Former Member
Former Member

I am using dc.getTextDimentions() to get the size of the font. But it returns the size of the font with margins. How do I find the string's measurements without the padding/margin?