Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXRichEditFontSubstitutionOptions Class

Contains font substitution options.

Namespace: DevExpress.Xpf.RichEdit

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

NuGet Package: DevExpress.Wpf.RichEdit

#Declaration

public class DXRichEditFontSubstitutionOptions :
    DXRichEditOptionsBase<FontSubstitutionOptions>

The following members return DXRichEditFontSubstitutionOptions objects:

#Remarks

The FontSubstitutionOptions class properties allow you to specify ASCII, Complex Script, High ANSI, and East Asian Unicode fonts that are used for substitution. When the current font does not include certain characters, the preferred font for substitution is used first (to search for these characters).

The following code sample demonstrates how to specify the preferred substitute font:

<dxre:RichEditControl.BehaviorOptions>
    <dxre:DXRichEditBehaviorOptions>
        <dxre:DXRichEditBehaviorOptions.FontSubstitutionOptions>
            <dxre:DXRichEditFontSubstitutionOptions ComplexScript="Dubai Medium"
                                                    EastAsia="SimSum"/>
        </dxre:DXRichEditBehaviorOptions.FontSubstitutionOptions>
    </dxre:DXRichEditBehaviorOptions>
</dxre:RichEditControl.BehaviorOptions>

#Inheritance

Object
DispatcherObject
DependencyObject
Freezable
DevExpress.Xpf.RichEdit.DXRichEditOptionsBase<FontSubstitutionOptions>
DXRichEditFontSubstitutionOptions
See Also