LayoutOptions.EnableTextShaping
LayoutOptions EnableTextShaping property. Flag indicating whether to enable support for OpenType features using the HarfBuzz text shaping engine. Default value depends on value set in EnableTextShaping.
LayoutOptions.EnableTextShaping property
Flag indicating whether to enable support for OpenType features using the HarfBuzz text shaping engine. Default value depends on value set in EnableTextShaping
.
public 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 enable openType features upon rendering documents.
ConverterContext context = new ConverterContext();
context.LayoutOptions.EnableTextShaping = true;
Converter.Create(context)
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "LayoutOptions.EnableTextShaping.pdf")
.Execute();
See Also
- class LayoutOptions
- namespace Wordize.Layout
- assembly Wordize