I need to build a function in a class library that take a string and a specific font for this string then get the width of the string

So how could I get the string boundary width ?

Edit
Report