FontFamilyDefinition
Contents
[
Hide
]Inheritance: java.lang.Object
public class FontFamilyDefinition
The font family definition.
Constructors
Constructor | Description |
---|---|
FontFamilyDefinition() | Initializes a new instance of the FontFamilyDefinition class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
style | int | The style. |
fontDef | FontDefinitionExt | The font definition. |
getFontDefinition(int style)
public final FontDefinitionExt getFontDefinition(int style)
Gets the font definition from family for specific style.
Parameters:
Parameter | Type | Description |
---|---|---|
style | int | The 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:
Parameter | Type | Description |
---|---|---|
localizedFamilyName | java.lang.String | The 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.