TX Text Control .NET Server

TrueTypeFontsOnly Property

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

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

public bool TrueTypeFontsOnly { get; set; }

Examples

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

FontSettings fontSettings = textControl.FontSettings;

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