Skip to content

Commit 4aba188

Browse files
authored
Merge pull request #314 from tonyhallett/fix-null-font-name-size
add default font name size
2 parents 18728e0 + 7c39416 commit 4aba188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ private IReportColours ReportColours
8888

8989
public string ReportGeneratorExePath { get; private set; }
9090

91-
private string FontSize => $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px";
92-
private string FontName => environmentFontDetails.Family.Source;
91+
private string FontSize => environmentFontDetails == null ? "12px" : $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px";
92+
private string FontName => environmentFontDetails == null ? "Arial" : environmentFontDetails.Family.Source;
9393

9494
[ImportingConstructor]
9595
public ReportGeneratorUtil(

0 commit comments

Comments
 (0)