# Load custom fonts. The page describes how to load custom fonts. GroupDocs.Annotation v21.5 and later allows you to generate preview for documents using custom fonts. To do this, specify the [FontDirectories](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.options/loadoptions/properties/fontdirectories) property of the [LoadOptions](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.options/loadoptions) class. The following code snippet shows how to use custom fonts while generating preview: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using (Annotator annotator = new Annotator(fs, new LoadOptions { FontDirectories = new List { $"D:/fonts" } })) { PreviewOptions previewOptions = new PreviewOptions(pageNumber => { var pagePath = $"D:/result_{pageNumber}.png"; return File.Create(pagePath); }); annotator.Document.GeneratePreview(previewOptions); } ``` {{< /tab >}} {{< /tabs >}}