DefaultFont

WordProcessingLoadOptions.DefaultFont property

Sets the default font for a WordProcessing document.

public string DefaultFont { get; set; }

Remarks

Note: The order of substitution is as follows:

  1. Automatically substitute missing fonts based on font name (if enabled).

  2. Automatically substitute missing fonts based on FontConfig (if enabled).

  3. Substitute missing fonts based on FontSubstitutes (if set).

  4. Automatically substitute missing fonts based on FontInfo (if enabled).

  5. Substitute missing fonts based on DefaultFont (if set).

The default font is the last step: a missing font that an earlier step, or the engine’s built-in substitution table for common fonts, already resolves keeps that substitute.

The default font is used only when it is available: installed on the machine or found in one of the FontDirectories. Otherwise the setting has no effect and the engine’s own fallback font replaces the missing font.

See Also