Hello,
When I was saving my docx as image (tiff) using “Noto Sans Thaana Regular”, font for Dhivehi, and “Noto Sans Meetei Mayek Regular”, font for Meiteilon (Manipuri), the text is rendered as boxes. I wonder if these two fonts are supported by Aspose, since most other Noto Sans fonts work with no issues.
Thanks!
@yanjung, for Dhivehi and Manipuri you should install the Aspose.Words.Shaping.HarfBuzz nuget and enable it as shown below, if you use Aspose.Words for .NET:
Document doc = new Document("document.docx");
doc.LayoutOptions.TextShaperFactory = Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
Please refer to Aspose.Words for .NET documentation:
https://docs.aspose.com/words/net/enable-opentype-features/
For Aspose.Words for Java please refer to this:
https://docs.aspose.com/words/java/enable-opentype-features/
If you are still experiencing the issue, could you please attach an input document, output TIFF and sample code that show the issue?
Thank you for your suggestion! When I try to build the plugin with the original package, some functions have conflicts. Is using pom file the only solution to it?
@yanjung No, using POM file is not the only solution. You can reference Aspose.Words and Shaping.Harfbuzz JARs in the way which is convenient for you. But you should make sure you use the same versions of these JARs, i.e. if you use 22.10 version of Aspose.Words JAR, you should use 22.10 version of Shaping.Harfbuzz plugin JAR.
I used https://repository.aspose.com/repo/com/aspose/aspose-words/22.1/aspose-words-22.1-jdk17.jar and the harfbuzz plugin jar from this repository, but there are several functions that are incompatible. Do you know why this happens?
@yanjung Could you please elaborate the problem in more details? What functions are incompatible on your side? If possible please create a simple application that will allow us to reproduce the problem. We will check the problem and provide you more information.
Yes. The incompatible class definitions are the several files under com/aspose/words. BasicTextShaperCache, Cluster, FontFeature, Glyph, ITextShaper and ITextShaperFactory. The two jars have different crc32.
@yanjung Thank you for additional information. I will consult with our Java developers and provide you more information.
@yanjung,
Unfortunately, we can’t reproduce this issue on our side. Please try updating your Aspose library and harfbuzz plugin to the latest version. They can be downloaded from the following links:
Download Aspose.Words for Java 22.10
Download Aspose.Words for Java 22.10 Harfbuzz Plugin
In case the problem persists, please create a sample Java application (source code without compilation errors) that will help us reproduce your problem on our end, and attach it here as a zip file for testing. Also please attach sample files with which the problem can be reproduced.