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 method needs to clear cache with custom fonts defined by user.

Returns: void


getFontFolders

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

Returns: String


loadExternalFont

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

Parameters:

NameTypeDescription
databyte[]Font’s data

Returns: void


loadExternalFonts

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

Parameters:

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

Returns: void