Skip to main content

ASPxRichEditSettings.Fonts Property

Provide access to font settings.

Namespace: DevExpress.Web.ASPxRichEdit

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

Declaration

public ASPxRichEditFontSettings Fonts { get; }

Property Value

Type Description
ASPxRichEditFontSettings

An object that contain information about fonts.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Fonts
ASP.NET Bootstrap Controls BootstrapRichEdit
.Settings.Fonts
ASP.NET MVC Extensions MVCxRichEdit
.Settings.Fonts
RichEditSettings
.Settings.Fonts
ASP.NET Web Forms Controls ASPxRichEdit
.Settings.Fonts

Remarks

Use the Fonts property to provide information about fonts available in the control (FontCollection) and specify mapping rules (MappingSettings) that are applied to unavailable fonts.

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