# TextControl.FontSettings Property

> Gets a FontSettings object which provides properties determining which fonts can be used in a document.

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

---

### Description

Gets a [FontSettings](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/llms-full.txt) object which provides properties determining which fonts can be used in a document.

### Syntax

```csharp
public FontSettings FontSettings { get; }
```

```vbnet
Public ReadOnly Property FontSettings As FontSettings
```

### Examples

The following example restricts document font selection to scalable TrueType fonts.

```csharp
FontSettings settings = textControl.FontSettings;
settings.TrueTypeFontsOnly = true;
settings.ScalableFontsOnly = true;
```

```vbnet
Dim settings As FontSettings = textControl.FontSettings
settings.TrueTypeFontsOnly = True
settings.ScalableFontsOnly = True
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextControl.FontDialog Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/fontdialog-method/llms-full.txt)
- **Next:** [TextControl.FontUnderlineStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/fontunderlinestyle-property/llms-full.txt)
