# FontSettings.TrueTypeFontsOnly Property

> 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.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > FontSettings.TrueTypeFontsOnly Property
- **418 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/truetypefontsonly-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/truetypefontsonly-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/truetypefontsonly-property/llms-full.txt

---

### Description

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.

### Syntax

```csharp
public bool TrueTypeFontsOnly { get; set; }
```

```vbnet
Public Property TrueTypeFontsOnly As Boolean
```

### Examples

The following example configures font settings for the current document by using `FontSettings.TrueTypeFontsOnly`.

```csharp
FontSettings fontSettings = textControl.FontSettings;

fontSettings.TrueTypeFontsOnly = true;
if (fontSettings.TrueTypeFontsOnly)
{
    Console.WriteLine("Font Settings: True Type Fonts Only is enabled.");
}
```

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

fontSettings.TrueTypeFontsOnly = True
If fontSettings.TrueTypeFontsOnly Then
    Console.WriteLine("Font Settings: True Type Fonts Only is enabled.")
End If
```

---

## Nearby

- **Previous:** [FontSettings.ScalableFontsOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/scalablefontsonly-property/llms-full.txt)
- **Next:** [Footnote Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnote/llms-full.txt)
