ASPxRichEditFontSettings.FontCollection Property
Provides access to a collection of fonts available in the control.
Namespace: DevExpress.Web.ASPxRichEdit
Assembly: DevExpress.Web.ASPxRichEdit.v24.1.dll
NuGet Package: DevExpress.Web.Office
Declaration
Property Value
Type | Description |
---|---|
ASPxRichEditFontCollection | The collection of fonts. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to FontCollection |
---|---|
ASPxRichEditSettings |
|
Remarks
Use the FontCollection property to specify a list of fonts available in the control. This list limits fonts for the ribbon and dialogs.
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