Not sure, but I think the font functions (on some platforms if
not all) might not work until the window is actually mapped to the
screen.
So to get reliable results, you may have to do that kind of
stuff after the window has actually opened on the display.
However, I'm pretty sure you can size the svg image to the same
value as the font size, as both values I /think/ are in "fltk units"
(which used to be pixels, before the display scaling stuff was
added). I think you'll find everything xywh and font sizes are all
in fltk units, so if the font size is 100, the svg w/h size should
also be 100. There might be a small offset having to do with font
descenders and such, but there's probably a way to figure that out
without a round trip through the underlying font manager code.