set font
This commit is contained in:
parent
d025b670d3
commit
1f91779dac
1 changed files with 1 additions and 4 deletions
|
|
@ -14,10 +14,7 @@ namespace ShiftScheduler.Services
|
||||||
static PdfExportService()
|
static PdfExportService()
|
||||||
{
|
{
|
||||||
QuestPDF.Settings.License = LicenseType.Community;
|
QuestPDF.Settings.License = LicenseType.Community;
|
||||||
//QuestPDF.Settings.FontDiscoveryPaths.Clear();
|
|
||||||
QuestPDF.Settings.FontDiscoveryPaths.Add("fonts");
|
QuestPDF.Settings.FontDiscoveryPaths.Add("fonts");
|
||||||
QuestPDF.Settings.FontDiscoveryPaths.Add("LatoFont");
|
|
||||||
QuestPDF.Settings.CheckIfAllTextGlyphsAreAvailable = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] GenerateMonthlySchedulePdf(List<ShiftWithTransport> shiftsWithTransport)
|
public byte[] GenerateMonthlySchedulePdf(List<ShiftWithTransport> shiftsWithTransport)
|
||||||
|
|
@ -158,7 +155,7 @@ namespace ShiftScheduler.Services
|
||||||
{
|
{
|
||||||
var shiftWithTransport = shiftsWithTransport.GetValueOrDefault(weekDates.ElementAtOrDefault(day));
|
var shiftWithTransport = shiftsWithTransport.GetValueOrDefault(weekDates.ElementAtOrDefault(day));
|
||||||
var transportInfo = GetTransportSummary(shiftWithTransport);
|
var transportInfo = GetTransportSummary(shiftWithTransport);
|
||||||
table.Cell().Element(CellStyleLast).Text(transportInfo);
|
table.Cell().Element(CellStyleLast).Text(transportInfo).FontFamily("NotoEmoji-Regular");
|
||||||
}
|
}
|
||||||
foreach (var day in Enumerable.Range(dayInWeek, 7 - dayInWeek))
|
foreach (var day in Enumerable.Range(dayInWeek, 7 - dayInWeek))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue