From 03060c0370cd18cf8102b2d65d23e47f5e29acc5 Mon Sep 17 00:00:00 2001 From: natekford Date: Wed, 31 Jan 2024 16:54:10 -0800 Subject: [PATCH] more font stuff with github actions. --- src/NarrativeCharts.Skia/SKChartDrawer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NarrativeCharts.Skia/SKChartDrawer.cs b/src/NarrativeCharts.Skia/SKChartDrawer.cs index cdda09b..a1c3280 100644 --- a/src/NarrativeCharts.Skia/SKChartDrawer.cs +++ b/src/NarrativeCharts.Skia/SKChartDrawer.cs @@ -48,9 +48,9 @@ public SKChartDrawer() /// protected override SKContext CreateCanvas(NarrativeChartData chart, YMap yMap) { - Console.WriteLine($"Axis type face: {AxisLabelFont.Typeface.FamilyName}"); - Console.WriteLine($"Point type face: {PointLabelFont.Typeface.FamilyName}"); - Console.WriteLine($"Default type face: {SKTypeface.Default.FamilyName}"); + Console.WriteLine($"Axis type face: {AxisLabelFont?.Typeface?.FamilyName}"); + Console.WriteLine($"Point type face: {PointLabelFont?.Typeface?.FamilyName}"); + Console.WriteLine($"Default type face: {SKTypeface.Default?.FamilyName}"); var dims = GetDimensions(yMap); // Default color type is Rgba8888 which is 32 bits, Rgb565 is 16 bits // I don't use transparency in any of the drawing and the colors I use for