PrivateFontCollection
System.Drawing.Text.PrivateFontCollection
Namespace: System.Drawing.Text
Assembly: System.Drawing.Managed (4.0.0.0)
Encapsulates a collection of Font objects. Provides a collection of font families built from font files that are provided by the client application.
public class PrivateFontCollection : FontCollectionPublic Class PrivateFontCollection
Inherits FontCollectionConstructors
PrivateFontCollection()
Initializes a new instance of the PrivateFontCollection class.
Methods
AddFontFile(filename)
Adds a font from the specified file to this PrivateFontCollection.
Throws:
FileNotFoundException The specified font is not supported or the font file cannot be found.
AddMemoryFont(memory, length)
Adds a font contained in system memory to this PrivateFontCollection.
Last updated
Was this helpful?