FontsSettingsBuilder.DefaultFolder(String) Method
Specifies a folder that contains font source files.
Namespace: DevExpress.AspNetCore.RichEdit
Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll
NuGet Package: DevExpress.AspNetCore.RichEdit
#Declaration
public FontsSettingsBuilder DefaultFolder(
string DefaultFolder
)
#Parameters
Name | Type | Description |
---|---|---|
Default |
String | The folder URL. |
#Returns
Type | Description |
---|---|
Fonts |
An object that can be used to further configure the Rich |
#Remarks
When you call the AddFont(string name, string fontFamily) method to add a font to the RichEdit control, you should provide the font’s source files for four styles: regular, bold, italic, and bold italic. Add font source files to the folder specified by the DefaultFolder method. Name a file based on the rules listed below. The control locates files based on a font’s fontFamily property value.
File Name | Description | Example |
---|---|---|
font |
The font in regular style | comic. |
font |
The font in bold style | comicb. |
font |
The font in italic style | comici. |
font |
The font in bold italic style | comicz. |
@(Html.DevExpress().RichEdit("richEdit")
.Fonts(f => {
f.DefaultFolder("fontsFolder");
f.AddFont("Comic", "Comic");
See the Font Management to learn more about fonts in the RichEdit control.