Settings.EnableTextShaping
Settings EnableTextShaping property. Flag indicating whether to enable support for OpenType features using the HarfBuzz text shaping engine. Default is false.
Settings.EnableTextShaping property
Flag indicating whether to enable support for OpenType features using the HarfBuzz text shaping engine. Default is false
.
public static bool EnableTextShaping { get; set; }
Remarks
Text shaping is only performed when exporting to PDF or XPS formats. For Windows platforms no additional efforts are required because Wordize already includes compiled HarfBuzz
library. For other systems, Wordize relies on already installed HarfBuzz
library. For instance, many Linux-based systems have HarfBuzz
installed system-wide by default. If not, there is usually a package available for installing via package manager.
Examples
Shows how to globally enable open type features for document rendering operations.
Wordize.Settings.EnableTextShaping = true;
Converter.Convert(MyDir + "Simple.docx", ArtifactsDir + "Settings.EnableTextShaping.xps");