TX Text Control .NET for Windows Forms

ScalableFontsOnly 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 free scalable fonts can be used in a document. The default setting of this property is false.

Syntax

public bool ScalableFontsOnly { get; set; }

Examples

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

FontSettings fontSettings = textControl.FontSettings;

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

fontSettings.TrueTypeFontsOnly = true;