# FontSettings Class

> The FontSettings class provides settings determining which fonts can be used in a document.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FontSettings Class
- **629 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/llms-full.txt

---

### Description

The FontSettings class provides settings determining which fonts can be used in a document.

### Syntax

```csharp
public class FontSettings
```

```vbnet
Public Class FontSettings
```

### Examples

The following example configures font settings for the current document.

```csharp
FontSettings fontSettings = textControl.FontSettings;
fontSettings.TrueTypeFontsOnly = true;
```

```vbnet
Dim fontSettings As FontSettings = textControl.FontSettings
fontSettings.TrueTypeFontsOnly = True
```

---

## In This Section

- [FontSettings.AdaptFontEvent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/adaptfontevent-property/llms-full.txt): Specifies whether a TextControl.AdaptFont event is raised, if a font must be adapted. The default setting of this property is false.
- [FontSettings.EmbeddableFontsOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/embeddablefontsonly-property/llms-full.txt): Gets or sets a value specifying that only embeddable fonts can be used in a document. Embeddable fonts may be stored in a document without violating its font embedding licensing rights. When a document with embedded fonts is opened on a system that does not have the font installed, the embedded font may be loaded for temporary use on that system. TX Text Control allows only OpenType and TrueType fonts to be embeddable. This property must be set to true, if a document is to be saved in Adobe PDF/A format. The default setting of this property is false.
- [FontSettings.ScalableFontsOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/scalablefontsonly-property/llms-full.txt): Gets or sets a value specifying that only free scalable fonts can be used in a document. The default setting of this property is false.
- [FontSettings.TrueTypeFontsOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/truetypefontsonly-property/llms-full.txt): Gets or sets a value specifying that only TrueType and OpenType fonts can be used in a document. The default setting of this property is false.

---

## Nearby

- **Previous:** [FindOptions Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/findoptions/enumeration/llms-full.txt)
- **Next:** [FontSettings.AdaptFontEvent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/fontsettings/adaptfontevent-property/llms-full.txt)
