QuestPDF / QuestPDF

QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API. Easily generate PDF reports, invoices, exports, etc.

Home Page:https://www.questpdf.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows Container - Text - Error

a09308060 opened this issue · comments

I use Windows Container Creat PDF

I have Use
FontManager.RegisterFontWithCustomName("SourceSerif4", File.OpenRead("PDFFont/SourceSerif4-Italic-VariableFont_opsz,wght.ttf"));

column.Item().Row(row =>
{
row.RelativeItem().PaddingBottom(10).AlignCenter().Text("☐").FontFamily("SourceSerif4").FontSize(19).ExtraBlack();
});

Have Error:

System.ArgumentException: 'The typeface 'SourceSerif4' could not be found. Please consider the following options: 1) install the font on your operating system or execution environment. 2) load a font file specifically for QuestPDF usage via the QuestPDF.Drawing.FontManager.RegisterFontType(Stream fileContentStream) static method. Available font family names: []'