public class FontFactory extends Object
Contains functionality for opening fonts of different types and other methods for creating various objects.
| Constructor and Description |
|---|
FontFactory()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Font |
open(FontDefinition fontDefinition)
Opens a font, using FontDefinition object.
|
Font |
open(FontType fontType,
byte[] fontData)
Opens a font, using font type and font data byte array.
|
Font |
open(FontType fontType,
StreamSource fontStreamSource)
Opens a font, using font type and stream source.
|
Font |
open(FontType fontType,
String fileName)
Opens a font, using font type and font file name.
|
public Font open(FontDefinition fontDefinition)
Opens a font, using FontDefinition object.
fontDefinition - Font definition object.public Font open(FontType fontType, StreamSource fontStreamSource)
Opens a font, using font type and stream source.
fontType - Font type.fontStreamSource - Stream source for font.public Font open(FontType fontType, String fileName)
Opens a font, using font type and font file name.
fontType - Font type.fileName - Font file name.Copyright © 2025 Aspose. All Rights Reserved.