TtcFontSource

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IFontSource

public class TtcFontSource implements IFontSource

Represents TTC Font source.

Constructors

ConstructorDescription
TtcFontSource(StreamSource source)Creates TTC Font source based on IStreamSource stream providing object.
TtcFontSource(String filePath)Creates TTC Font source based on ttc font collection file path.

Methods

MethodDescription
getFontDefinitions()Returns Font definition array of the TTC Font source.

TtcFontSource(StreamSource source)

public TtcFontSource(StreamSource source)

Creates TTC Font source based on IStreamSource stream providing object.

Parameters:

ParameterTypeDescription
sourceStreamSourceSource stream to extract TTC Font collection data from.

TtcFontSource(String filePath)

public TtcFontSource(String filePath)

Creates TTC Font source based on ttc font collection file path.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringFont collection file.

getFontDefinitions()

public FontDefinition[] getFontDefinitions()

Returns Font definition array of the TTC Font source.

Returns: com.aspose.font.FontDefinition[] - All font definitions from TTC Font source.