Since the variable name is now part of the text, it would be better to put this in <tt>findTextSize()</tt>.
By the way: this won't work.
For example, the factor is 5 and the variable is <i>x</i> (and thus the symbol is <i>5x</i>) only the bounding box of the <i>x</i> will be returned.