TX Text Control .NET for Windows Forms

EmbeddableFontsOnly Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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

public bool EmbeddableFontsOnly { get; set; }

Examples

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

FontSettings fontSettings = textControl.FontSettings;

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

fontSettings.TrueTypeFontsOnly = true;

Further Reading