diff --git a/Services/PdfExportService.cs b/Services/PdfExportService.cs index ae81441..e678aae 100644 --- a/Services/PdfExportService.cs +++ b/Services/PdfExportService.cs @@ -14,6 +14,8 @@ namespace ShiftScheduler.Services static PdfExportService() { QuestPDF.Settings.License = LicenseType.Community; + QuestPDF.Settings.FontDiscoveryPaths.Clear(); + QuestPDF.Settings.FontDiscoveryPaths.Add("fonts"); } public byte[] GenerateMonthlySchedulePdf(List shiftsWithTransport) @@ -28,7 +30,7 @@ namespace ShiftScheduler.Services { container.Page(page => { - page.Margin(30); + page.Margin(15); page.Size(PageSizes.A4.Landscape()); page.DefaultTextStyle(x => x.FontSize(10)); diff --git a/Services/ShiftScheduler.Services.csproj b/Services/ShiftScheduler.Services.csproj index fb248fc..7b150d0 100644 --- a/Services/ShiftScheduler.Services.csproj +++ b/Services/ShiftScheduler.Services.csproj @@ -16,4 +16,25 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Services/fonts/NotoEmoji-Bold.ttf b/Services/fonts/NotoEmoji-Bold.ttf new file mode 100644 index 0000000..cb12a0d Binary files /dev/null and b/Services/fonts/NotoEmoji-Bold.ttf differ diff --git a/Services/fonts/NotoEmoji-Light.ttf b/Services/fonts/NotoEmoji-Light.ttf new file mode 100644 index 0000000..9dd228e Binary files /dev/null and b/Services/fonts/NotoEmoji-Light.ttf differ diff --git a/Services/fonts/NotoEmoji-Medium.ttf b/Services/fonts/NotoEmoji-Medium.ttf new file mode 100644 index 0000000..eef3662 Binary files /dev/null and b/Services/fonts/NotoEmoji-Medium.ttf differ diff --git a/Services/fonts/NotoEmoji-Regular.ttf b/Services/fonts/NotoEmoji-Regular.ttf new file mode 100644 index 0000000..e93a498 Binary files /dev/null and b/Services/fonts/NotoEmoji-Regular.ttf differ diff --git a/Services/fonts/NotoEmoji-SemiBold.ttf b/Services/fonts/NotoEmoji-SemiBold.ttf new file mode 100644 index 0000000..8e30c57 Binary files /dev/null and b/Services/fonts/NotoEmoji-SemiBold.ttf differ diff --git a/Services/fonts/NotoEmoji-VariableFont_wght.ttf b/Services/fonts/NotoEmoji-VariableFont_wght.ttf new file mode 100644 index 0000000..3773d02 Binary files /dev/null and b/Services/fonts/NotoEmoji-VariableFont_wght.ttf differ