## DocumentFontsSubsystem.UsingDefaultFont method

Crea una nuova istanza DocumentFontsSubsystem utilizzando il nome del carattere predefinito specificato.

```csharp
public static DocumentFontsSubsystem UsingDefaultFont(string defaultFontName, 
    Dictionary<string, string> fontsSubstitutions = null)
```

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| defaultFontName | String | Il nome del carattere predefinito. |
| fontsSubstitutions | Dictionary`2 | Le sostituzioni dei caratteri. |

### Valore di ritorno

Il[`DocumentFontsSubsystem`](../) .

### Esempi

Mostra come salvare un documento in formato pdf utilizzando il carattere predefinito specificato.

```csharp
// Il percorso della directory dei documenti.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

// Carica il documento in Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));

// Salva il documento come PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontName_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions() 
                      {
                          FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFont("Times New Roman")
                      });
```

### Guarda anche

* class [DocumentFontsSubsystem](../)
* spazio dei nomi [Aspose.Note.Fonts](../../documentfontssubsystem/)
* assemblea [Aspose.Note](../../../)


