public class FontConfigs
extends java.lang.Object
| Constructor and Description |
|---|
FontConfigs() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultFontName()
Gets the default font name.
|
static FontFileDataInfo |
getFontFileDataInfo(java.lang.String fontName,
boolean isBold,
boolean isItalic,
boolean isExactStyle)
Get data infomation of font file data.
|
static FontSourceBase[] |
getFontSources()
Gets a copy of the array that contains the list of sources
|
static java.lang.String[] |
getFontSubstitutes(java.lang.String originalFontName)
Returns array containing font substitute names to be used if original font is not presented.
|
static boolean |
isFontAvailable(java.lang.String fontName)
Indicate whether the font is available.
|
static void |
setDefaultFontName(java.lang.String value)
Sets the default font name.
|
static void |
setFontExclusiveSources(FontSourceBase[] exclusiveSources)
Sets the fonts exclusive sources.
|
static void |
setFontFolder(java.lang.String fontFolder,
boolean recursive)
Sets the fonts folder
|
static void |
setFontFolders(java.lang.String[] fontFolders,
boolean recursive)
Sets the fonts folders
|
static void |
setFontSources(FontSourceBase[] sources)
Sets the fonts sources.
|
static void |
setFontSubstitutes(java.lang.String originalFontName,
java.lang.String[] substituteFontNames)
Font substitute names for given original font name.
|
public static boolean isFontAvailable(java.lang.String fontName)
fontName - font namepublic static FontFileDataInfo getFontFileDataInfo(java.lang.String fontName, boolean isBold, boolean isItalic, boolean isExactStyle)
fontName - font nameisBold - the font style is bold or notisItalic - the font style is italic or notisExactStyle - whether to match the given bold/italic style exactlypublic static java.lang.String getDefaultFontName()
public static void setDefaultFontName(java.lang.String value)
public static void setFontSubstitutes(java.lang.String originalFontName,
java.lang.String[] substituteFontNames)
originalFontName - Original font name.substituteFontNames - List of font substitute names to be used if original font is not presented.public static java.lang.String[] getFontSubstitutes(java.lang.String originalFontName)
originalFontName - originalFontNamepublic static void setFontFolder(java.lang.String fontFolder,
boolean recursive)
fontFolder - The folder that contains TrueType fonts.recursive - Determines whether or not to scan subfolders.public static void setFontFolders(java.lang.String[] fontFolders,
boolean recursive)
fontFolders - The folders that contains TrueType fonts.recursive - Determines whether or not to scan subfolders.public static void setFontSources(FontSourceBase[] sources)
sources - An array of sources that contain TrueType fonts.public static void setFontExclusiveSources(FontSourceBase[] exclusiveSources)
Remarks
System.setProperty("Aspose.Cells.FontDirExc", "fontExclusiveFolder") will be ignored if this is set.exclusiveSources - An array of sources that contain TrueType fonts.public static FontSourceBase[] getFontSources()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.