FontFamilyDefinition

Inheritance: java.lang.Object

public class FontFamilyDefinition

The font family definition.

Constructors

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

Methods

MethodDescription
addFontDefinition(int style, FontDefinitionExt fontDef)Adds the font definition to font family.
getFontDefinition(int style)Gets the font definition from family for specific style.
matchesLocalizedFamilyName(String localizedFamilyName)Matches localized family names in this family.
getFamilyName()Gets a family name of this family.

FontFamilyDefinition()

public FontFamilyDefinition()

Initializes a new instance of the FontFamilyDefinition class.

addFontDefinition(int style, FontDefinitionExt fontDef)

public final void addFontDefinition(int style, FontDefinitionExt fontDef)

Adds the font definition to font family.

Parameters:

ParameterTypeDescription
styleintThe style.
fontDefFontDefinitionExtThe font definition.

getFontDefinition(int style)

public final FontDefinitionExt getFontDefinition(int style)

Gets the font definition from family for specific style.

Parameters:

ParameterTypeDescription
styleintThe style.

Returns: FontDefinitionExt - Returns font definition if exist for specified style, null otherwise.

matchesLocalizedFamilyName(String localizedFamilyName)

public final boolean matchesLocalizedFamilyName(String localizedFamilyName)

Matches localized family names in this family.

Parameters:

ParameterTypeDescription
localizedFamilyNamejava.lang.StringThe localized family name.

Returns: boolean - true if this family includes the localized family name.

getFamilyName()

public final String getFamilyName()

Gets a family name of this family.

Returns: java.lang.String - The family name, or null for an empty family.