# FontSettings.EmbeddableFontsOnly Property

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

- **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.EmbeddableFontsOnly Property
- **541 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/embeddablefontsonly-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/embeddablefontsonly-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/fontsettings/embeddablefontsonly-property/llms-full.txt

---

### Description

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.

### Syntax

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

```vbnet
Public Property EmbeddableFontsOnly As Boolean
```

### Examples

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

```csharp
FontSettings fontSettings = textControl.FontSettings;

fontSettings.EmbeddableFontsOnly = true;
if (fontSettings.EmbeddableFontsOnly)
{
    Console.WriteLine("Font Settings: Embeddable Fonts Only is enabled.");
}

fontSettings.TrueTypeFontsOnly = true;
```

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

fontSettings.EmbeddableFontsOnly = True
If fontSettings.EmbeddableFontsOnly Then
    Console.WriteLine("Font Settings: Embeddable Fonts Only is enabled.")
End If

fontSettings.TrueTypeFontsOnly = True
```

---

## Nearby

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