PrivateFontCollection
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.drawing.FontCollection
public final class PrivateFontCollection extends FontCollection
Provides a collection of font families built from font files that are provided by the client application.
Constructors
Constructor | Description |
---|---|
PrivateFontCollection() | Initializes a new instance of the PrivateFontCollection class. |
Methods
Method | Description |
---|---|
addFontFile(String filename) | Adds a font from the specified file to this PrivateFontCollection. |
addMemoryFont(byte[] memory, int length) | Adds a font contained in system memory to this PrivateFontCollection. |
PrivateFontCollection()
public PrivateFontCollection()
Initializes a new instance of the PrivateFontCollection class.
addFontFile(String filename)
public void addFontFile(String filename)
Adds a font from the specified file to this PrivateFontCollection.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | A String that contains the file name of the font to add. |
addMemoryFont(byte[] memory, int length)
public void addMemoryFont(byte[] memory, int length)
Adds a font contained in system memory to this PrivateFontCollection.
Parameters:
Parameter | Type | Description |
---|---|---|
memory | byte[] | The memory address of the font to add. |
length | int | The memory length of the font to add. |