Back to Devexpress

DXRichEditHtmlDocumentExporterOptions.UseFontSubstitution Property

wpf-devexpress-dot-xpf-dot-richedit-dot-dxrichedithtmldocumentexporteroptions-4a6db36e.md

latest1.9 KB
Original Source

DXRichEditHtmlDocumentExporterOptions.UseFontSubstitution Property

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

Namespace : DevExpress.Xpf.RichEdit

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

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public bool UseFontSubstitution { get; set; }
vb
Public Property UseFontSubstitution As Boolean

Property Value

TypeDescription
Boolean

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

DXRichEditHtmlDocumentExporterOptions Class

DXRichEditHtmlDocumentExporterOptions Members

DevExpress.Xpf.RichEdit Namespace