All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxRichEditFontSettings.MappingSettings Property

Provides access to font mapping settings.

Namespace: DevExpress.Web.ASPxRichEdit

Assembly: DevExpress.Web.ASPxRichEdit.v20.1.dll

Declaration

public ASPxRichEditFontMappingSettings MappingSettings { get; }
Public ReadOnly Property MappingSettings As ASPxRichEditFontMappingSettings

Property Value

Type Description
ASPxRichEditFontMappingSettings

An object that contains font mapping settings.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to MappingSettings
ASP.NET Controls and MVC Extensions ASPxRichEdit
.Settings.Fonts.MappingSettings
ASPxRichEditSettings
.Fonts.MappingSettings
MVCxRichEdit
.Settings.Fonts.MappingSettings
RichEditSettings
.Settings.Fonts.MappingSettings
ASP.NET Bootstrap Controls BootstrapRichEdit
.Settings.Fonts.MappingSettings
BootstrapRichEdit
.Settings.Fonts.MappingSettings

Remarks

The FontCollection property lists fonts available in the ASPxRichEdit control. When a user inserts content that includes unlisted fonts, the control irrevocably updates the inserted font information according to rules specified in the MappingSettings property.

See the Font Management topic to learn more about fonts in the ASPxRichEdit control.

<dx:ASPxRichEdit ID="richEdit" runat="server" WorkDirectory="~\App_Data\WorkDirectory">
  <Settings>
    <Fonts DefaultFolder="fontsFolder/">
      <FontCollection>
        <dx:ASPxRichEditFont FontFamily="Calibri" Name="Calibri"
          RegularFontUri="CalibriFont/calibri.ttf"
          BoldFontUri="CalibriFont/calibrib.ttf"
          ItalicFontUri="CalibriFont/calibrii.ttf"
          BoldItalicFontUri="CalibriFont/calibriz.ttf" />
        <dx:ASPxRichEditFont FontFamily="Comic" Name="Comic" />
        <dx:ASPxRichEditFont FontFamily="Lemonada" Name="Lemonada" UseGoogleFonts="true" />
        <dx:ASPxRichEditFont FontFamily="Roboto Mono" Name="Roboto Mono" UseGoogleFonts="true" />
      </FontCollection>
      <MappingSettings DefaultFontName="Calibri">
        <Rules>
          <dx:ASPxRichEditFontMappingRule SourceFontFamily="Arial" DestinationFontName="Comic" />
          <dx:ASPxRichEditFontMappingRule SourceFontFamily="Times" DestinationFontName="Roboto Mono" />
        </Rules>
      </MappingSettings>
    </Fonts>
  </Settings>
</dx:ASPxRichEdit>
See Also