We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 18728e0 + 7c39416 commit 4aba188Copy full SHA for 4aba188
SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs
@@ -88,8 +88,8 @@ private IReportColours ReportColours
88
89
public string ReportGeneratorExePath { get; private set; }
90
91
- private string FontSize => $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px";
92
- private string FontName => environmentFontDetails.Family.Source;
+ private string FontSize => environmentFontDetails == null ? "12px" : $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px";
+ private string FontName => environmentFontDetails == null ? "Arial" : environmentFontDetails.Family.Source;
93
94
[ImportingConstructor]
95
public ReportGeneratorUtil(
0 commit comments