ScalableFontsOnly 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 free scalable fonts can be used in a document. The default setting of this property is false.
Syntax
public bool ScalableFontsOnly { get; set; }Public Property ScalableFontsOnly As BooleanExamples
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;Dim fontSettings As FontSettings = textControl.FontSettings
fontSettings.ScalableFontsOnly = True
If fontSettings.ScalableFontsOnly Then
Console.WriteLine("Font Settings: Scalable Fonts Only is enabled.")
End If
fontSettings.TrueTypeFontsOnly = True