Hello,
Hi Klaus,
Thanks for your inquiry. Please upgrade to the latest version of Aspose.Words i.e. 13.8.0 and let us know how does it go on your side? You can download it from the following link:
Download Aspose.Words for Java
In case the problem still remains, could you please attach your input/output Word/Pdf documents and your font file(s) here for testing? I will investigate the issue on my side and provide you more information.
Best regards,
awais.hafeez:
In case the problem still remains, could you please attach your input/output Word/Pdf documents and your font file(s) here for testing? I will investigate the issue on my side and provide you more information.
Hi Klaus,
awais.hafeez:
I installed your fonts on my ubuntu machine and was unable to reproduce this issue on my side.
Hi Klaus,
Thanks for the additional information.
By default, Aspose.Words looks for fonts installed to the standard system locations on a particular OS and you can retrieve an array of these environment-dependent font sources ( system folders that are searched by default ) by using FontSettings.GetFontsSources method. However, specifying a custom font folder by using FontSettings.SetFontsFolder method will override these default font sources and in this case only custom font folders are searched for fonts. I think, in your case, you need to specify fonts to be read from both the default system folders and from a folder filled with your own fonts. Please read the “Specifying Fonts to be Read from both the Windows Fonts Folder and a Custom Folder” section in the following link:
I hope, this helps.
PS: It could be that I was unable to reproduce your issue on my side because I did test your scenario on a Ubuntu machine which has it’s own GUI.
Best regards,