Skip to main content

FontMappingsSettingsBuilder Class

A builder for font mapping settings.

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public class FontMappingsSettingsBuilder

The following members return FontMappingsSettingsBuilder objects:

Remarks

@(Html.DevExpress().RichEdit("richEdit")
    .Fonts(f => {
        f.AddFont("Calibri", "Calibri", "CalibriFont/calibri.ttf", "CalibriFont/calibrib.ttf", "CalibriFont/calibrii.ttf", "CalibriFont/calibriz.ttf");
        f.AddFont("Roboto Mono", "Roboto Mono", true);
        f.Mapping(m => {
            m.DefaultFontName("Calibri");
            m.AddRule("Times", "Roboto Mono");
        });
    })
)

For more information, see the Font Management topic.

Inheritance

Object
FontMappingsSettingsBuilder
See Also