com.groupdocs.viewer.fonts

Class FolderFontSource

    • Constructor Detail

      • FolderFontSource

        public FolderFontSource(String folderPath,
                        SearchOption searchOption)

        Initializes new instance of FolderFontSource class.

        Parameters:
        folderPath - Path to the folder that contains TrueType fonts.
        searchOption - Specifies whether to search the current folder, or the current folder and all sub-folders.
        Throws:
        IllegalArgumentException - Thrown when folderPath is null.
        FileNotFoundException - Thrown when path specified in folderPath can't be located.
    • Method Detail

      • getFolderPath

        public final String getFolderPath()

        Path to the folder that contains TrueType fonts.

      • getSearchOption

        public final SearchOption getSearchOption()

        Specifies whether to search the current folder, or the current folder and all subfolders.

        Returns:
        whether to search the current folder, or the current folder and all subfolders.
      • isRecursive

        public boolean isRecursive()
        Checks if fonts would be searched recursively
        Returns:
        true if recursively, otherwise false
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.