Method MeasureWidth
MeasureWidth(string, bool, bool, string)
Measures letters as the canvas draws them, for MeasureWidth: the width of the letters one unit high in the family's face, bold or italic, the canvas's own font (Arial) for none.
public static double MeasureWidth(string family, bool bold, bool italic, string text)
Parameters
familystringThe family, or a font file.
boldboolWhether bold.
italicboolWhether italic.
textstringThe letters.
Returns
- double
The width.