We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is the latest version of PDF for .Net able to use OpenType Postscript fonts?

Hi,

Is the latest version of PDF for .Net able to use OpenType Postscript fonts?

Specifically I want to use the CJK Noto fonts from Google, such as https://github.com/googlei18n/noto-cjk/blob/master/NotoSansJP-Regular.otf.

Thanks,
mick


Hi Mick,


Thanks for your inquiry. Yes, Aspose.Pdf for .NET support the OpenType fonts. You can use Google Noto fonts. However if you face any issue then please feel free to contact us, we will be more than happy to extend our support.

Best Regards,

Hi Mick,


Thanks for your interest in our API’s.

As shared by Tilal, Aspose.Pdf for .NET supports OTF font but when using NotoSansJP-Regular.otf font, an exception is being generated. For the sake of correction, I have logged it as PDFNEWNET-40221 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

[C#]

var pdfDoc = new Document();<o:p></o:p>

pdfDoc.Pages.Add();

Aspose.Pdf.Text.TextFragment fragment = new TextFragment("sample text...");

fragment.TextState.Font = FontRepository.OpenFont("c:/pdftest/NotoSansJP-Regular.otf");

fragment.TextState.Font.IsEmbedded = true;

pdfDoc.Pages[1].Paragraphs.Add(fragment);

pdfDoc.Save("c:/pdftest/OTF_FomntSupport.pdf");

Excellent - thank you for investigating - this is helpful.

Some colleagues had tried that Japanese font - and ran into an issue - perhaps the same one you encountered.
As well as the Japanese Noto font, we’ll be wanting to use the corresponding Chinese, Korean fonts too:
https://github.com/googlei18n/noto-cjk/blob/master/NotoSansKR-Regular.otf
https://github.com/googlei18n/noto-cjk/blob/master/NotoSansSC-Regular.otf
https://github.com/googlei18n/noto-cjk/blob/master/NotoSansTC-Regular.otf

Thanks for the support.
mick

Hi Mick,


Thanks for your feedback. We have recorded your concern and our product team will consider this during the issue analysis and resolution. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Has this issue been analyzed - any update?
Thanks,
mick

Hi Mick,


Thanks for contacting support.

I am afraid the earlier reported issue is not yet resoled as the team has been busy fixing other previously reported high priority issues. However I have requested the product team to share the updates regarding its resolution. As soon as we have some definite information, we will let you know.

We are sorry for this inconvenience.

The issues you have found earlier (filed as PDFNET-40221) have been fixed in Aspose.PDF for .NET 19.2.