FolderFontSource class

FolderFontSource class

Represents the folder that contains TrueType fonts.

The FolderFontSource type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of FolderFontSource.

Methods

Method Description
equals Determines whether the current FolderFontSource is the same as the specified FolderFontSource object.
equals Determines whether the current FolderFontSource is the same as the specified object.
equals_folder_font_source
equals_object
get_hash_code Returns the hash code for the current FolderFontSource object.
to_string Returns a string that represents the current object.

Properties

Property Description
folder_path The path to the folder that contains TrueType fonts.
search_option The search option specifying whether to search the current folder, or the current folder and all subfolders.

Example

from groupdocs.viewer.fonts import FolderFontSource, SearchOption

# Create a font source that searches all subfolders.
src = FolderFontSource("C:/fonts/primary", SearchOption.ALL_FOLDERS)

See Also