aspnet-devexpress-dot-web-dot-aspxrichedit-dot-aspxricheditfontsettings-8fd285b9.md
Specifies a folder that contains font source files.
Namespace : DevExpress.Web.ASPxRichEdit
Assembly : DevExpress.Web.ASPxRichEdit.v25.2.dll
NuGet Package : DevExpress.Web.Office
[DefaultValue("fonts/")]
public string DefaultFolder { get; set; }
<DefaultValue("fonts/")>
Public Property DefaultFolder As String
| Type | Default | Description |
|---|---|---|
| String | "fonts/" |
The folder URL.
|
You can access this nested property as listed below:
| Object Type | Path to DefaultFolder |
|---|---|
| ASPxRichEditSettings |
.Fonts .DefaultFolder
|
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
ASPxRichEditFontSettings Class