FontMappingsSettingsBuilder Class

A builder for font mapping settings.

Namespace: DevExpress.AspNetCore.RichEdit

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

Declaration

public class FontMappingsSettingsBuilder

Related API Members

The following members accept/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