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,
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,
Hi Mick,
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,
Hi,
Hi Mick,
The issues you have found earlier (filed as PDFNET-40221) have been fixed in Aspose.PDF for .NET 19.2.