PrivateFontCollection.AddFontFile
PrivateFontCollection.AddFontFile method
Adds a font from the specified file to this PrivateFontCollection.
public void AddFontFile(string filename)
Parameter | Type | Description |
---|---|---|
filename | String | A String that contains the file name of the font to add. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | File name should not be null or empty. |
FileNotFoundException | The specified font is not supported or the font file cannot be found. |
See Also
- class PrivateFontCollection
- namespace System.Drawing.Text
- assembly Aspose.Drawing