Calculates the appropriate font size and ratio for an SVG element based on the bounding box of the SVG and the dimensions of the document body.
The bounding box of the SVG element.
The base value to calculate the font size.
The maximum allowed font size.
The calculated font size and ratio.
Calculates the appropriate font size and ratio for an SVG element based on the bounding box of the SVG and the dimensions of the document body.