ZugferdController.cs
FileStream fontStream = new FileStream(dataPath + "arial.ttf", FileMode.Open,FileAccess.Read, FileShare.ReadWrite);
PdfTrueTypeFont headerFont = new PdfTrueTypeFont(fontStream, 30,PdfFontStyle.Regular); |
Can you please support embedding standard fonts? or at least expose PdfDocument.DefaultFont to be public instead of internal, so that we would get some control over the default fonts ?
Hi Syed,
Regarding your query on embedding standard fonts:
At present, we do not support the direct embedding of standard fonts. This is because standard fonts are internally mapped using predefined glyph data, and embedding would require the actual font file. As an alternative, you can use our PdfTrueTypeFont
API to embed custom fonts as needed.
About your request to expose Default font:
We’ve logged this as a feature request titled “Support to set default font to the PDF document in ASP.NET Core.” While we currently don’t have immediate plans to implement this functionality, it is under consideration for one of our future releases. As part of our regular release planning—which occurs approximately every three months—we will review all open feature requests. You will be notified once this feature is scheduled for implementation.
You can track the status of this request through the following link:
Support to set default font to the PDF document in ASP.NET Core | Feedback Portal
Regards,
Irfana J