In my .net maui project. I use QuestPdf to generate a pdf file. the code works fine in windows but in android tells me that the font is not found.
my code:
my code:
C#:
var pdfDocument = Document.Create(container =>
{
container.Page(page =>
{
page.Size(PageSizes.A4);
page.Margin(1, Unit.Centimetre);
page.PageColor(Colors.White);
page.DefaultTextStyle(x =>
x.FontFamily("Calibri"));
});
}
Last edited by a moderator: