ASPxRichEditFontSettings.DefaultFolder Property
Specifies a folder that contains font source files.
Namespace: DevExpress.Web.ASPxRichEdit
Assembly: DevExpress.Web.ASPxRichEdit.v24.1.dll
NuGet Package: DevExpress.Web.Office
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | "fonts/" | The folder URL. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to DefaultFolder |
---|---|
ASPxRichEditSettings |
|
Remarks
When you populate the FontCollection collection with a font, you should provide the font’s source files for four styles: regular, bold, italic, and bold italic. Place the source files in the DefaultFolder folder and name them according to the rules listed below to automatically assign the files to a corresponding ASPxRichEditFont object.
File Name | Description | Example |
---|---|---|
FontFamily + .ttf/.woff | The font in regular style | calibri.ttf |
FontFamily + b + .ttf/.woff | The font in bold style | calibrib.ttf |
FontFamily + i + .ttf/.woff | The font in italic style | calibrii.ttf |
FontFamily + z + .ttf/.woff | The font in bold italic style | calibriz.ttf |
See the Font Management topic to learn more about fonts in the ASPxRichEdit control.
<dx:ASPxRichEdit ID="RichEdit" runat="server" Width="100%" Height="700px">
<Settings>
<Fonts DefaultFolder="fontFolder/">
<FontCollection>
<dx:ASPxRichEditFont FontFamily="Arial" Name="Arial"/>
<dx:ASPxRichEditFont FontFamily="Calibri" Name="Calibri"/>
</FontCollection>
</Fonts>
<Settings>
</dx:ASPxRichEdit>
See Also