com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class FontsLoader

  • java.lang.Object
    • com.aspose.slides.FontsLoader
  • All Implemented Interfaces:
    IFontsLoader


    public final class FontsLoader
    extends java.lang.Object
    implements IFontsLoader

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

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void clearCache()
      Releases all custom fonts defined by user
      static java.lang.String[] getFontFolders()
      Gets font folders.
      static void loadExternalFont(byte[] data)
      Adds font from the binary data
      static void loadExternalFonts(java.lang.String[] directories)
      Adds additional folders to seek fonts.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadExternalFonts

        public static void loadExternalFonts(java.lang.String[] directories)

        Adds additional folders to seek fonts.

        Parameters:
        directories - Directories to read additional fonts.
      • loadExternalFont

        public static void loadExternalFont(byte[] data)

        Adds font from the binary data

        Parameters:
        data - Font's data
      • getFontFolders

        public static java.lang.String[] getFontFolders()

        Gets font folders. Returns folders that have been added with LoadExternalFonts method as well as system font folders

        Returns:
        array containing folder names
      • clearCache

        public static void clearCache()

        Releases all custom fonts defined by user


        This method needs to clear cache with custom fonts defined by user.