Back to Devexpress

IRichEditFontsSettings Interface

aspnetcore-js-devexpress-dot-richedit-1bca2724.md

latest3.0 KB
Original Source

IRichEditFontsSettings Interface

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

Declaration

ts
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

ts
defaultFolder?: string

Property Value

TypeDescription
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 NameDescriptionExample
fontFamily + .ttf/.woffThe font in regular stylecalibri.ttf
fontFamily + b + .ttf/.woffThe font in bold stylecalibrib.ttf
fontFamily + i + .ttf/.woffThe font in italic stylecalibrii.ttf
fontFamily + z + .ttf/.woffThe font in bold italic stylecalibriz.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

ts
fonts?: IFontSettings[]

Property Value

TypeDescription
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

ts
mappings?: IFontMapping

Property Value

TypeDescription
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.