FontsLoader

FontsLoader class

Class for loading custom fonts defined by user. Should be used before creating any presentation objects.

clearCache

NameDescription
clearCache ()Releases all custom fonts defined by user This function needs to clear cache with custom fonts defined by user.

getFontFolders

NameDescription
getFontFolders ()Gets font folders. Returns folders that have been added with LoadExternalFonts function as well as system font folders

Returns: String


loadExternalFont

NameDescription
loadExternalFont (byte[])Adds font from the binary data

Parameters:

NameTypeDescription
databyte[]Font’s data

loadExternalFonts

NameDescription
loadExternalFonts (java.lang.String[])Adds additional folders to seek fonts.

Parameters:

NameTypeDescription
directoriesjava.lang.String[]Directories to read additional fonts.