FontDefinitionExt

Inheritance: java.lang.Object

public class FontDefinitionExt

Class contains font definition,

Constructors

ConstructorDescription
FontDefinitionExt(String fontName, String familyName, List localizedFamilyNames, int type, String fileName, long offset)Initializes a new instance of the FontDefinitionExt class.

Methods

MethodDescription
getFamilyName()Gets the font family name.
getStyle()Gets the font style.
getFontName()Gets the name of the font.
getPostscriptName()Gets the postscript name of the font.
getType()Gets the font type.
getFontFile()Gets the font file.
getFileName()Gets the name of the file.
getFont()Gets the font.

FontDefinitionExt(String fontName, String familyName, List localizedFamilyNames, int type, String fileName, long offset)

public FontDefinitionExt(String fontName, String familyName, List<String> localizedFamilyNames, int type, String fileName, long offset)

Initializes a new instance of the FontDefinitionExt class.

Parameters:

ParameterTypeDescription
fontNamejava.lang.StringName of the font.
familyNamejava.lang.StringFamily of the font.
localizedFamilyNamesjava.util.List<java.lang.String>Localized font family names.
typeintThe type.
fileNamejava.lang.StringName of the file.
offsetlongThe offset.

getFamilyName()

public final String getFamilyName()

Gets the font family name.

Value: The font family name.

Returns: java.lang.String

getStyle()

public final String getStyle()

Gets the font style.

Value: The font style.

Returns: java.lang.String

getFontName()

public final String getFontName()

Gets the name of the font.

Value: The name of the font.

Returns: java.lang.String

getPostscriptName()

public final String getPostscriptName()

Gets the postscript name of the font.

Value: The postscript name of the font.

Returns: java.lang.String

getType()

public final int getType()

Gets the font type.

Value: The font type.

Returns: int

getFontFile()

public final FontFileDefinition getFontFile()

Gets the font file.

Value: The font file.

Returns: com.aspose.fonts.sources.FontFileDefinition

getFileName()

public final String getFileName()

Gets the name of the file.

Value: The name of the file.

Returns: java.lang.String

getFont()

public final IFont getFont()

Gets the font.

Returns: com.aspose.fonts.IFont - Returns font for current definition.