FontSettings Class
Contents
[
Hide
]Summary: General imaging vector formats renderer font settings.
Module: aspose.imaging
Full Name: aspose.imaging.FontSettings
Properties
Name | Type | Access | Description |
---|---|---|---|
default_font_name [static] | string | r/w | Gets or sets the default name of the font. |
get_system_alternative_font [static] | bool | r/w | Gets or sets a value indicating whether [get alternative font]. |
Methods
Name | Description |
---|---|
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
Type | Description |
---|---|
string | Returns 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
Type | Description |
---|---|
string | A 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:
Parameter | Type | Description |
---|---|---|
font_folder | string | The 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:
Parameter | Type | Description |
---|---|---|
fonts_folders | string | The fonts folders. |
recursive | bool | if set to |