PrivateFontCollection

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

ConstructorDescription
PrivateFontCollection()Initializes a new instance of the PrivateFontCollection class.

Methods

MethodDescription
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:

ParameterTypeDescription
filenamejava.lang.StringA 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:

ParameterTypeDescription
memorybyte[]The memory address of the font to add.
lengthintThe memory length of the font to add.