LayoutOptions.KeepOriginalFontMetrics

LayoutOptions KeepOriginalFontMetrics property. Gets or sets an indication of whether the original font metrics should be used after font substitution. Default is false.

LayoutOptions.KeepOriginalFontMetrics property

Gets or sets an indication of whether the original font metrics should be used after font substitution. Default is false.

public bool KeepOriginalFontMetrics { get; set; }

Examples

Shows how to set the property for finding the closest match for a missing font from the available font sources.

ConverterContext context = new ConverterContext();
context.LayoutOptions.KeepOriginalFontMetrics = true;

Converter.Create(context)
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "LayoutOptions.KeepOriginalFontMetrics.pdf")
    .Execute();

See Also