IndividualFontConfigs
Contents
[
Hide
]IndividualFontConfigs class
Font configs for each Workbook object.
Constructors
| Name | Description |
|---|---|
| IndividualFontConfigs | Ctor. |
Methods
| Name | Description |
|---|---|
| setFontSubstitutes | Font substitute names for given original font name. |
| getFontSubstitutes | Returns array containing font substitute names to be used if original font is not presented. |
| setFontFolder | Sets the fonts folder |
| setFontFolders | Sets the fonts folders |
| setFontSources | Sets the fonts sources. |
| setFontExclusiveSources | Sets the fonts exclusive sources. Only fonts in the sources will be used. |
System.setProperty(“Aspose.Cells.FontDirExc”, | | getFontSources | Gets a copy of the array that contains the list of sources |
IndividualFontConfigs()
Ctor.
setFontSubstitutes(originalFontName, substituteFontNames)
Font substitute names for given original font name.
| Parameter | Type | Description |
|---|---|---|
| originalFontName | String | Original font name. |
| substituteFontNames | String[] | List of font substitute names to be used if original font is not presented. |
getFontSubstitutes(originalFontName)
Returns array containing font substitute names to be used if original font is not presented.
| Parameter | Type | Description |
|---|---|---|
| originalFontName | String | originalFontName |
Returns: An array containing font substitute names to be used if original font is not presented.
setFontFolder(fontFolder, recursive)
Sets the fonts folder
| Parameter | Type | Description |
|---|---|---|
| fontFolder | String | The folder that contains TrueType fonts. |
| recursive | boolean | Determines whether or not to scan subfolders. |
setFontFolders(fontFolders, recursive)
Sets the fonts folders
| Parameter | Type | Description |
|---|---|---|
| fontFolders | String[] | The folders that contains TrueType fonts. |
| recursive | boolean | Determines whether or not to scan subfolders. |
setFontSources(sources)
Sets the fonts sources.
| Parameter | Type | Description |
|---|---|---|
| sources | FontSourceBase[] | An array of sources that contain TrueType fonts. |
setFontExclusiveSources(exclusiveSources)
Sets the fonts exclusive sources. Only fonts in the sources will be used.
System.setProperty(“Aspose.Cells.FontDirExc”, “fontExclusiveFolder”) will be ignored if this is set.
| Parameter | Type | Description |
|---|---|---|
| exclusiveSources | FontSourceBase[] | An array of sources that contain TrueType fonts. |
getFontSources()
Gets a copy of the array that contains the list of sources