I encountered an issue while converting a Word file that contains Arabic content using the Cairo font. During the conversion process, some Arabic characters appear rendered in Arial font, while the rest are displayed correctly in Cairo
It seems you are experiencing issues with Arabic text rendering when converting a Word document using the Cairo font. Specifically, some Arabic characters are being rendered in Arial instead of Cairo. This issue has been noted by other users as well.
The problem appears to be related to font handling during the conversion process. It has been identified that for proper Arabic text rendering with the Cairo font, the HarfBuzz text shaper should be utilized. When using HarfBuzz, the issue of mixed fonts does not occur.
To resolve your issue, I recommend enabling the HarfBuzz text shaper in your conversion process. You can find detailed instructions on how to enable OpenType features, which includes using HarfBuzz, in the Aspose documentation here.
If you continue to face issues after implementing this, please ensure that you are using the latest version of the Aspose.Words library, as updates may include fixes for font rendering issues.
If you have any further questions or need additional assistance, feel free to ask!
Sources:
[1]: Arabic font changes after conversion from word to PDF
@MohamadFardoun Could you please attach your problematic input and output documents here for testing? We will check the issue and provide you more information.