ASPxRichEditFont Class
Defines a font in the ASPxRichEdit control.
Namespace: DevExpress.Web.ASPxRichEdit
Assembly: DevExpress.Web.ASPxRichEdit.v24.2.dll
Declaration
Remarks
The FontCollection property lists fonts, which are instances of the ASPxRichEditFont class, available in the control. For every font object, you must specify the font name (Name), font family (FontFamily) and font source.
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>
Inheritance
Object
StateManager
CollectionItem
ASPxRichEditFont
See Also