Aspose::Cells::FontConfigs class

FontConfigs class

Specifies font settings.

class FontConfigs

Methods

MethodDescription
FontConfigs()Default constructor.
FontConfigs(FontConfigs_Impl* impl)Constructs from an implementation object.
FontConfigs(const FontConfigs& src)Copy constructor.
static GetDefaultFontName()Gets or sets the default font name.
static GetFontSources()Gets a copy of the array that contains the list of sources.
static GetFontSubstitutes(const U16String& originalFontName)Returns array containing font substitute names to be used if original font is not presented.
static GetFontSubstitutes(const char16_t* originalFontName)Returns array containing font substitute names to be used if original font is not presented.
static GetPreferSystemFontSubstitutes()Indicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set. e.g. On Ubuntu, “Arial” font is generally substituted by “Liberation Sans”. Default value is false.
static IsFontAvailable(const U16String& fontName)Indicate whether the font is available.
static IsFontAvailable(const char16_t* fontName)Indicate whether the font is available.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const FontConfigs& src)operator=
static SetDefaultFontName(const U16String& value)Gets or sets the default font name.
static SetDefaultFontName(const char16_t* value)Gets or sets the default font name.
static SetFontFolder(const U16String& fontFolder, bool recursive)Sets the fonts folder.
static SetFontFolder(const char16_t* fontFolder, bool recursive)Sets the fonts folder.
static SetFontFolders(const Vector <U16String>& fontFolders, bool recursive)Sets the fonts folders.
static SetFontSources(const Vector <FontSourceBase>& sources)Sets the fonts sources.
static SetFontSubstitutes(const U16String& originalFontName, const Vector <U16String>& substituteFontNames)Font substitute names for given original font name.
static SetFontSubstitutes(const char16_t* originalFontName, const Vector <U16String>& substituteFontNames)Font substitute names for given original font name.
static SetPreferSystemFontSubstitutes(bool value)Indicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set. e.g. On Ubuntu, “Arial” font is generally substituted by “Liberation Sans”. Default value is false.
~FontConfigs()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also