PeachDrawing.Text
PeachDrawing.Text.FontSet
FontSet.AddFile(string, AddOptions) Method
Adds a font that is read from a file.
public PeachDrawing.Text.TypefaceFamily AddFile(string path, PeachDrawing.Text.AddOptions? options=null);
Parameters
path System.String
The path of the font file.
options AddOptions
What to say about the font in place of what it says about itself, or null for nothing.
Returns
TypefaceFamily
The family the font was added to.
Exceptions
TypefaceFormatException
The file is not a font this library can read.