Skip to main content
All docs
V26.1
  • FontsSettingsBuilder.DefaultFolder(String) Method

    Specifies a folder that contains font source files.

    Namespace: DevExpress.AspNetCore.RichEdit

    Assembly: DevExpress.AspNetCore.RichEdit.v26.1.dll

    Declaration

    public FontsSettingsBuilder DefaultFolder(
        string DefaultFolder
    )

    Parameters

    Name Type Description
    DefaultFolder String

    The folder URL.

    Returns

    Type Description
    FontsSettingsBuilder

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

    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
    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
    @(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.

    See Also