---
title: "Specify Default Fonts"
---

```

## Purpose Summary

This page explains how to specify default fonts for rendering and layout.

```

```

See more details in the [Manipulating and Substitution TrueType Fonts](/words/net/manipulating-and-substitution-truetype-fonts/) article.

```

We have a simple program which allows to convert a Word document to PDF. This is achieved by loading the document into the [Aspose.Words document model (DOM)](/words/net/aspose-words-document-object-model/) and calling the [Save](https://reference.aspose.com/words/net/aspose.words/document/save/#save/) method with a ".PDF" extension.

You can specify the default font by calling the [DefaultFontName](https://reference.aspose.com/words/net/aspose.words.fonts/defaultfontsubstitutionrule/defaultfontname/) property before the document is rendered.

The following code example shows how to specify default fonts:

```csharp
Document doc = new Document("../../data/document.doc");

// If the default font defined here cannot be found during rendering then the closest font on the machine is used instead.
FontSettings.DefaultInstance.SubstitutionSettings.DefaultFontSubstitution.DefaultFontName = "Arial Unicode MS";

// Now the set default font is used in place of any missing fonts during any rendering calls.
doc.Save("Rendering.SetDefaultFont_Out.pdf");
doc.Save("Rendering.SetDefaultFont_Out.xps");
```

See also:

- [GitHub](https://github.com/aspose-words/Aspose.Words-for-.NET/releases/download/Aspose.Words_Features_Missing_in_NPOI_v_1.0/Specify.Default.Fonts.Aspose.Words.zip) for running code

