Skip to main content

IRichEditFontsSettings Interface

Declares settings that allow you to provide information about fonts available in the control.

Declaration

export interface IRichEditFontsSettings

Remarks

See the Font Management topic to learn more about fonts in the Rich Text Editor.

Properties

defaultFolder Property

Specifies a folder that contains font source files.

Declaration

defaultFolder?: string

Property Value

Type Description
string

The folder URL.

Remarks

When you populate the fonts collection with a font, you should provide the font’s source files for four styles: regular, bold, italic, and bold italic. Place the source files in the defaultFolder folder and name them according to the rules listed below to automatically assign the files to a corresponding font object.

File Name Description Example
fontFamily + .ttf/.woff The font in regular style calibri.ttf
fontFamily + b + .ttf/.woff The font in bold style calibrib.ttf
fontFamily + i + .ttf/.woff The font in italic style calibrii.ttf
fontFamily + z + .ttf/.woff The font in bold italic style calibriz.ttf

See the Font Management topic to learn more about fonts in the Rich Text Editor.

fonts Property

Provides access to a collection of fonts available in the control.

Declaration

fonts?: IFontSettings[]

Property Value

Type Description
IFontSettings[]

The array of fonts.

Remarks

Use the fonts property to specify a list of fonts available in the control. This list limits fonts for the ribbon and dialogs.

mappings Property

Provides access to font mapping settings.

Declaration

mappings?: IFontMapping

Property Value

Type Description
IFontMapping

An object that contains font mapping settings.

Remarks

The fonts property lists fonts available in the Rich Text Editor. When a user inserts content that includes unlisted fonts, the control permanently updates the inserted font information according to rules specified in the mappings property.