Skip to main content

IFontMappingRule Interface

Declares settings of a font mapping rule.

Declaration

export interface IFontMappingRule

Remarks

A font mapping rule maps a font family (sourceFontFamily) to a destination font (destinationFontName).

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

Properties

destinationFontName Property

Specifies a font to which a source font family is mapped.

Declaration

destinationFontName: string

Property Value

Type Description
string

The font name.

Remarks

The destinationFontName property specifies a font to which a source font family is mapped.

Note

The destinationFontName property value should match the name property value of a font listed in the fonts collection.

sourceFontFamily Property

Specifies a name of a font family that is mapped.

Declaration

sourceFontFamily: string

Property Value

Type Description
string

The font family.

Remarks

The sourceFontFamily property specifies a font family that is mapped to a destination font.