Skip to main content

DXRichEditHtmlDocumentExporterOptions.UseFontSubstitution Property

Gets or sets whether missing fonts are substituted. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v24.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

Declaration

public bool UseFontSubstitution { get; set; }

Property Value

Type Description
Boolean

true, to substitute fonts missing in the system; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to UseFontSubstitution
DXRichEditDocumentExportOptions
.HtmlOptions .UseFontSubstitution

Remarks

If the original fonts specified in the document are missing in the system, they are automatically substituted with available fonts. So the fonts in the exported HTML file may be different from the document fonts.

Set the UseFontSubstitution option to false to retain the original font names even if the fonts are missing.

See Also