I encountered an issue where circled numbers (enclosed alphanumerics) are not rendered properly when they contain two digits (e.g., ⑩–⑳).
Specifically:
- The two-digit circled numbers appear slightly misaligned.
- The spacing inside the circle looks too wide, making the digits appear farther apart.
- The digits sit too close to the circle’s border, which makes them look different from how they appear in Microsoft Word.
Sample Code:
using Aspose.Words;
using Aspose.Words.Saving;
using Aspose.Words.Shaping.HarfBuzz;
var license = new License();
license.SetLicense("licensePath");
var document = new Document("inputPath")
{
// LayoutOptions = { TextShaperFactory = HarfBuzzTextShaperFactory.Instance },
};
// document.UpdateFields();
var options = new ImageSaveOptions(SaveFormat.Png)
{
Resolution = 384,
UseAntiAliasing = true,
UseHighQualityRendering = true,
// MetafileRenderingOptions =
// {
// RenderingMode = MetafileRenderingMode.VectorWithFallback,
// EmulateRasterOperations = false
// }
};
document.Save("outputPath", options);
Environment:
- .NET Framework 4.8
- Aspose.Words 25.9.0
- Aspose.Words.Shaping.HarfBuzz 25.9.0
Sample docx:
circled_number.docx (14.1 KB)
Aspose output:
Expeceted output:
