How do I get a BoxCollider2D to precisely fit to a TextMesh?
I'm working on a game featuring letters of the alphabet, and I'm using a TextMesh component for each character. When I add a BoxCollider2D component, the sizing is completely wrong. Take a look:

What I really want is the collider to match the sizing of the blue wireframe. However, I can't find any way to access that size. The RectTransform component has a width and height of 0, so that won't work. MeshRenderer.bounds.size returns nothing. I even tried Font.characterInfo to get the glyph dimensions; still nothing.
Any suggestions?
It seems like there's no easy solution for this. There are a few suggestions here (ignore the top answer) that might help.
Your answer
Follow this Question
Related Questions
Strange Vertical offset from origin using TextMesh 0 Answers
Set the font of a TextMeshProUGUI component BY CODE 0 Answers
TextMeshPro Set Alpha Color 0 Answers
Font Support 0 Answers
How do I make a TextMesh Pro Font Asset from a texture atlas? 0 Answers