FontSettings Class

Summary: General imaging vector formats renderer font settings.

Module: aspose.imaging

Full Name: aspose.imaging.FontSettings

Properties

NameTypeAccessDescription
default_font_name [static]stringr/wGets or sets the default name of the font.
get_system_alternative_font [static]boolr/wGets or sets a value indicating whether [get alternative font].

Methods

NameDescription
get_default_fonts_folders()Gets the default fonts folders.
get_fonts_folders()Gets a copy of the array that contains the list of folders where Aspose.Words looks for TrueType fonts.
reset()Resets the fonts folder and default font name to the system default.
set_fonts_folder(font_folder)This is a shortcut to FontSettings.set_fonts_folders(fonts_folders, recursive) for setting only one font directory.
There are no checks performed on the fonts folder.
set_fonts_folders(fonts_folders, recursive)Sets the folders where TrueType fonts are loaded from and clears all loaded fonts.
There are no checks performed on the fonts folders.
update_fonts()Updates fonts cache for PSD files that contain text layers. This method guarantees that fonts from folder fontsFolder using
method FontSettings.SetFontsFolder(fontsFolder) or after reset fonts using FontSettings.Reset() will be taken into consideration when processing PSD files. Please use this method each time when
FontSettings.SetFontsFolder(fontsFolder) or FontSettings.Reset() called for PSD images. Without calling this Method there is no guarantee that fonts will be updated.

Method: get_default_fonts_folders() [static]

 get_default_fonts_folders() 

Gets the default fonts folders.

Returns

TypeDescription
stringReturns system folder

Method: get_fonts_folders() [static]

 get_fonts_folders() 

Gets a copy of the array that contains the list of folders where Aspose.Words looks for TrueType fonts.

Returns

TypeDescription
stringA copy of the current font locations.

Method: set_fonts_folder(font_folder) [static]

 set_fonts_folder(font_folder) 

This is a shortcut to FontSettings.set_fonts_folders(fonts_folders, recursive) for setting only one font directory.
There are no checks performed on the fonts folder.

Parameters:

ParameterTypeDescription
font_folderstringThe font folder.

Method: set_fonts_folders(fonts_folders, recursive) [static]

 set_fonts_folders(fonts_folders, recursive) 

Sets the folders where TrueType fonts are loaded from and clears all loaded fonts.
There are no checks performed on the fonts folders.

Parameters:

ParameterTypeDescription
fonts_foldersstringThe fonts folders.
recursiveboolif set to true [recursive].