TtcFontFileDefinition

Inheritance: java.lang.Object, com.aspose.font.FontFileDefinition

public class TtcFontFileDefinition extends FontFileDefinition

Represents file definition for TTC Font.

Constructors

ConstructorDescription
TtcFontFileDefinition(int fontIndex, String fileExtension, StreamSource streamSource, long offset)Creates a file definition using file content only.

Methods

MethodDescription
getFontIndex()Gets Font index inside TTC Font.

TtcFontFileDefinition(int fontIndex, String fileExtension, StreamSource streamSource, long offset)

public TtcFontFileDefinition(int fontIndex, String fileExtension, StreamSource streamSource, long offset)

Creates a file definition using file content only.

Parameters:

ParameterTypeDescription
fontIndexintIndex of font inside TTC font collection.
fileExtensionjava.lang.StringExtension of font file collection.
streamSourceStreamSourceSource of font file collection.
offsetlongOffset to font data in font file collection, see TTC Header, Offset Table in OpenType Font File specification

getFontIndex()

public long getFontIndex()

Gets Font index inside TTC Font.

Returns: long - Font index inside TTC Font.