TrueTypeFontsOnly Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property TrueTypeFontsOnly As BooleanExamples
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.");
}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