FolderFontSource

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.IFontSource

public final class FolderFontSource implements IFontSource

Represents the folder that contains TrueType fonts.

Constructors

Constructor Description
FolderFontSource(String folderPath, SearchOption searchOption) Initializes a new instance of the FolderFontSource class.

Methods

Method Description
getFolderPath() Gets the folder path.
getSearchOption() Gets the search option (SearchOption value).
isRecursive() Returns true if subdirectories should be included.
getPriorityInternal()
getFontDataInternal()
equals(Object obj)
hashCode()
toString()

FolderFontSource(String folderPath, SearchOption searchOption)

public FolderFontSource(String folderPath, SearchOption searchOption)

Initializes a new instance of the FolderFontSource class.

Parameters:

Parameter Type Description
folderPath java.lang.String Path to the folder that contains TrueType fonts.
searchOption SearchOption One of SearchOption.TOP_DIRECTORY_ONLY or SearchOption.ALL_DIRECTORIES.

getFolderPath()

public String getFolderPath()

Gets the folder path.

Returns: java.lang.String

getSearchOption()

public SearchOption getSearchOption()

Gets the search option (SearchOption value).

Returns: SearchOption

isRecursive()

public boolean isRecursive()

Returns true if subdirectories should be included.

Returns: boolean

getPriorityInternal()

public int getPriorityInternal()

Returns: int

getFontDataInternal()

public Iterable<IFontData> getFontDataInternal()

Returns: java.lang.Iterable<com.aspose.IFontData>

equals(Object obj)

public boolean equals(Object obj)

Parameters:

Parameter Type Description
obj java.lang.Object

Returns: boolean

hashCode()

public int hashCode()

Returns: int

toString()

public String toString()

Returns: java.lang.String