Skip to main content

FontsSettingsBuilder.DefaultFolder(String) Method

Specifies a folder that contains font source files.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v23.2.dll

NuGet Package: DevExpress.AspNetCore.RichEdit


public FontsSettingsBuilder DefaultFolder(
    string DefaultFolder


Name Type Description
DefaultFolder String

The folder URL.


Type Description

An object that can be used to further configure the RichEdit font settings.


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
fontFamily + .ttf/.woff The font in regular style comic.ttf
fontFamily + b + .ttf/.woff The font in bold style comicb.ttf
fontFamily + i + .ttf/.woff The font in italic style comici.ttf
fontFamily + z + .ttf/.woff The font in bold italic style comicz.ttf
    .Fonts(f => {
        f.AddFont("Comic", "Comic");

See the Font Management to learn more about fonts in the RichEdit control.

See Also