ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.05k stars 234 forks source link

How to embed fonts? #349

Open wolfgangschneider opened 1 year ago

wolfgangschneider commented 1 year ago

The generated pdf look different between Linux and Windows. I saw PdfDocumentRenderer(false, PdfFontEmbedding.Always); in the documentation, but my PdfDocumentRenderer constructor does not have an overloaded version with PdfFontEmbedding parameter.

Thanks Wolfgang

ststeiger commented 1 year ago

You can't. There is no GetFontData and no CreateFontPackage function on non-windows platforms. Until there is an alternative, you can't.