EmbeddableFontsOnly Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property EmbeddableFontsOnly As BooleanExamples
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;Dim fontSettings As FontSettings = textControl.FontSettings
fontSettings.EmbeddableFontsOnly = True
If fontSettings.EmbeddableFontsOnly Then
Console.WriteLine("Font Settings: Embeddable Fonts Only is enabled.")
End If
fontSettings.TrueTypeFontsOnly = True