Add Text using Custom Font with File Path using Aspose.PDF for .NET - Error Find Font

1010.PNG (5.7 KB)
Error -2.PNG (19.0 KB)
10x10 Font.zip (1.6 MB)
When processing 10x10 Font, an error like Attachment occurs.biome.pdf (1.6 MB)

@hbhur102

Would you please make sure to install font in your system by double clicking over font file. We have tested the scenario using Aspose.PDF for .NET 20.6 in our environment after installing the font and were unable to notice any issue. For your kind reference, an output PDF is also attached.
test20.6.out.pdf (1.6 MB)

Would you kindly make sure to use latest version of the API after installing font. In case you still face any issue, please let us know.

Works fine on some Windows 10 and not on some Windows 10.
I don’t know Why.

@hbhur102

It seems like environment specific issue. Would you kindly try to use file path to font file like following:

textFragment.TextState.Font = FontRepository.OpenFont("FontPath");

In case issue still persists, please share complete environment details where issue is occurring i.e. OS Name and Version, Application Type, etc. We will again test the scenario in specific environment and address it accordingly.

Even with the above method, an error occurs.

error-3.PNG (9.9 KB)
window version.PNG (2.2 KB)

@hbhur102

Would you kindly try using Aspose.PDF for .NET 20.12 at your side and let us know if you are facing the issue with it as well. We will further try to assist you accordingly. Also, please try to share complete Stack Trace in text format with us.