We are using
PDFSharp 6.1.0-preview-1 on
Docker with alphine linux when we create our PDF we use this code to create a font that will be used to write the page number on the page:
Code:
font = new XFont("Arial", fontSize, XFontStyleEx.Regular, embeddedFontOptions)
we also use this code for the resolver:
Code:
GlobalFontSettings.FontResolver = new FailsafeFontResolver();
We have Arial on the linux docker container, and was previously working untill the upgrade to PDFSharp 6.0 and PDFSharp 6.1.0-preview-1...
I can see this in the container terminal:
2024-01-04 16:51:19 info: PdfSharp.Snippets.Font.FailsafeFontResolver[0]
2024-01-04 16:51:19 'Arial' was substituted by a SegoeWP font.
2024-01-04 16:51:19 info: PdfSharp.Snippets.Font.FailsafeFontResolver[0]
2024-01-04 16:51:19 Get font for 'SegoeWP'.
But when I open the PDF in ADOBE viewer it seems the font is not embedded and is replaced incorrectly..
When running this on windows on my local machine it works, and the font Arial is foundSee ADOBE dialog and font issue screenshots...
Please advise.