UpdateAmbiguousTextFont
SaveOptions.UpdateAmbiguousTextFont property
Determina si los atributos de fuente se cambiarán según el código de carácter que se esté utilizando.
public bool UpdateAmbiguousTextFont { get; set; }
Ejemplos
Muestra cómo actualizar la fuente para que coincida con el código de carácter que se está utilizando.
Document doc = new Document(MyDir + "Special symbol.docx");
Run run = doc.FirstSection.Body.FirstParagraph.Runs[0];
Console.WriteLine(run.Text); // ฿
Console.WriteLine(run.Font.Name); // Arial
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions();
saveOptions.UpdateAmbiguousTextFont = true;
doc.Save(ArtifactsDir + "OoxmlSaveOptions.UpdateAmbiguousTextFont.docx", saveOptions);
doc = new Document(ArtifactsDir + "OoxmlSaveOptions.UpdateAmbiguousTextFont.docx");
run = doc.FirstSection.Body.FirstParagraph.Runs[0];
Console.WriteLine(run.Text); // ฿
Console.WriteLine(run.Font.Name); // Angsana Nuevo
Ver también
- class SaveOptions
- espacio de nombres Aspose.Words.Saving
- asamblea Aspose.Words