FontsLoader
FontsLoader class
Class for loading custom fonts defined by user.
Should be used before creating any presentation objects.
clearCache
Name | Description |
---|
clearCache () | Releases all custom fonts defined by user This function needs to clear cache with custom fonts defined by user. |
getFontFolders
Name | Description |
---|
getFontFolders () | Gets font folders. Returns folders that have been added with LoadExternalFonts function as well as system font folders |
Returns:
String
loadExternalFont
Name | Description |
---|
loadExternalFont (byte[]) | Adds font from the binary data |
Parameters:
Name | Type | Description |
---|
data | byte[] | Font’s data |
loadExternalFonts
Name | Description |
---|
loadExternalFonts (java.lang.String[]) | Adds additional folders to seek fonts. |
Parameters:
Name | Type | Description |
---|
directories | java.lang.String[] | Directories to read additional fonts. |