I am writing a program that is going to dump an SVG file, in C#. I was wondering if there is any way of measuring how big a piece of text is going to be from the C# program. I can assume that I know the font and fontsize. But the "average size of letter"*number_of_letters is very inaccurate.
I am looking for some option like this: 1) Just figure out, from font size and font, how big the text is. 2) I could dump the SVG once, and get the measure from there (by rendering it somehow? and then reading that information from it, somehow?)
Thanks!
Figured it out: