public final class PrivateFontCollection extends FontCollection
Provides a collection of font families built from font files that are provided by the client application.
| Constructor and Description |
|---|
PrivateFontCollection()
Initializes a new instance of the
PrivateFontCollection class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFontFile(String filename)
Adds a font from the specified file to this
PrivateFontCollection. |
void |
addMemoryFont(byte[] memory,
int length)
Adds a font contained in system memory to this
PrivateFontCollection. |
dispose, getFamiliespublic PrivateFontCollection()
Initializes a new instance of the PrivateFontCollection class.
public void addFontFile(String filename)
Adds a font from the specified file to this PrivateFontCollection.
filename - A String that contains the file name of the font to add.com.aspose.ms.System.ArgumentNullException - File name should not be null or empty.com.aspose.ms.System.IO.FileNotFoundException - The specified font is not supported or the font file cannot be found.public void addMemoryFont(byte[] memory,
int length)
Adds a font contained in system memory to this PrivateFontCollection.
memory - The memory address of the font to add.length - The memory length of the font to add.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.