FontConfigs

FontConfigs class

Specifies font settings

Constructors

NameDescription
FontConfigs

Properties

NameTypeDescription
DefaultFontNameStringGets or sets the default font name.

Methods

NameDescription
setFontSubstitutesFont substitute names for given original font name.
getFontSubstitutesReturns array containing font substitute names to be used if original font is not presented.
setFontFolderSets the fonts folder
setFontFoldersSets the fonts folders
setFontSourcesSets the fonts sources.
getFontSourcesGets a copy of the array that contains the list of sources

FontConfigs()

FontConfigs.DefaultFontName property

Gets or sets the default font name.

Type: String

setFontSubstitutes(originalFontName, substituteFontNames)

Font substitute names for given original font name.

ParameterTypeDescription
originalFontNameStringOriginal font name.
substituteFontNamesString[]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.

ParameterTypeDescription
originalFontNameStringoriginalFontName

Returns: An array containing font substitute names to be used if original font is not presented.

setFontFolder(fontFolder, recursive)

Sets the fonts folder

ParameterTypeDescription
fontFolderStringThe folder that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontFolders(fontFolders, recursive)

Sets the fonts folders

ParameterTypeDescription
fontFoldersString[]The folders that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontSources(sources)

Sets the fonts sources.

ParameterTypeDescription
sourcesFontSourceBase[]An array of sources that contain TrueType fonts.

getFontSources()

Gets a copy of the array that contains the list of sources