Class FontSettings
Contents
[
Hide
]FontSettings class
General PSD vector formats renderer font settings.
public static class FontSettings
Properties
Name | Description |
---|---|
static DefaultFontName { get; set; } | Gets or sets the default name of the font. |
static GetSystemAlternativeFont { get; set; } | Gets or sets a value indicating whether [get alternative font]. |
Methods
Name | Description |
---|---|
static ClearFontReplacements() | Clears the all fonts replacements |
static GetAdobeFontName(string) | Gets the adobe font name by font family name. |
static GetDefaultFontsFolders() | Gets the default fonts folders. |
static GetFontReplacements(string) | Gets the font replacements array by the font name |
static GetFontsFolders() | Gets a copy of the array that contains the list of folders where Aspose.Words looks for TrueType fonts. |
static GetReplacementFont(string) | Gets the most suitable replacement font. If all replacements are not allowed then will returned first allowed and available font. If there are no available fonts then will be returned font from argument |
static IsFontAllowed(string) | Determines whether [is font allowed] [the specified font name]. |
static RemoveFontCacheFile() | Removes of the font cache file. |
static Reset() | Resets the fonts folder and default font name to the system default. |
static SetAllowedFonts(string[]) | Restricts font using by list of fonts. Please check real font names before restriction Set Allowed font list to Null to remove restrictrions |
static SetFontReplacements(string, string[]) | Sets the font replacement list. If font is not allowed then will be find replacement. The first one font in list will be used first. If it retricted too, then will be selected next font from list. If font has not replacements or all replacements are not allowed then will be used first allowed font from allowed font list. If there are no allowed and available fonts then library will try use system default font even if it is not allowed. |
static SetFontsFolder(string) | This is a shortcut to SetFontsFolders for setting only one font directory. There are no checks performed on the fonts folder. |
static SetFontsFolders(string[], bool) | Sets the folders where TrueType fonts are loaded from and clears all loaded fonts. There are no checks performed on the fonts folders. |
static UpdateFonts() | 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. |
See Also
- namespace Aspose.PSD
- assembly Aspose.PSD