Skip to main content

ASPxRichEditFontMappingSettings.DefaultFontName Property

Specifies a font to which font families are mapped by default.

Namespace: DevExpress.Web.ASPxRichEdit

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


public string DefaultFontName { get; set; }

Property Value

Type Default Description
String String.Empty

The font name.

Property Paths

You can access this nested property as listed below:

Object Type Path to DefaultFontName


The DefaultFontName property specifies a name of a font to which font families are mapped by default (when there is no an appropriate rule in the Rules collection).


The DefaultFontName property value should match the Name property value of a font listed in the FontCollection collection.

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

<dx:ASPxRichEdit ID="richEdit" runat="server" WorkDirectory="~\App_Data\WorkDirectory">
    <Fonts DefaultFolder="fontsFolder/">
        <dx:ASPxRichEditFont FontFamily="Calibri" Name="Calibri"
          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" />
      <MappingSettings DefaultFontName="Calibri">
          <dx:ASPxRichEditFontMappingRule SourceFontFamily="Arial" DestinationFontName="Comic" />
          <dx:ASPxRichEditFontMappingRule SourceFontFamily="Times" DestinationFontName="Roboto Mono" />
See Also