Skip to main content

PrintingSettings.UseRichTextFontSubstitution Property

Specifies whether or not to substitute missing fonts in the Rich Text when a report is exported to HTML.

Namespace: DevExpress.XtraPrinting.Native

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public static bool UseRichTextFontSubstitution { get; set; }

Property Value

Type Description
Boolean

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

Remarks

By default, when exporting the Rich Text to HTML, fonts that cannot be found in the system are automatically substituted with fonts installed on the machine. So, the fonts in the initial document and in the exported HTML file can be different.

To disable automatic font substitution in the Rich Text and retain the original font names, set the UseRichTextFontSubstitution property to false. In this case, it cannot be guaranteed that all the text drawn using missing fonts will be correctly measured without these fonts installed on the machine where the report is exported to HTML.

See Also