From 1b91015d8f5883fa9702b37adc28daab217d2a21 Mon Sep 17 00:00:00 2001 From: knoxyz <30576590+knoxyz@users.noreply.github.com> Date: Thu, 28 Apr 2022 16:21:56 +0200 Subject: [PATCH] Replaced the obsolete methods from 2022.3 (FontType, Color and Size) --- QuestPDF.ReportSample/Typography.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuestPDF.ReportSample/Typography.cs b/QuestPDF.ReportSample/Typography.cs index 434bf37..05a1a4c 100644 --- a/QuestPDF.ReportSample/Typography.cs +++ b/QuestPDF.ReportSample/Typography.cs @@ -6,8 +6,8 @@ namespace QuestPDF.ReportSample { public static class Typography { - public static TextStyle Title => TextStyle.Default.FontType(Fonts.Calibri).Color(Colors.Blue.Darken3).Size(26).Black(); - public static TextStyle Headline => TextStyle.Default.FontType(Fonts.Calibri).Color(Colors.Blue.Medium).Size(16).SemiBold(); - public static TextStyle Normal => TextStyle.Default.FontType(Fonts.Verdana).Color(Colors.Black).Size(10).LineHeight(1.2f); + public static TextStyle Title => TextStyle.Default.FontFamily(Fonts.Calibri).FontColor(Colors.Blue.Darken3).FontSize(26).Black(); + public static TextStyle Headline => TextStyle.Default.FontFamily(Fonts.Calibri).FontColor(Colors.Blue.Medium).FontSize(16).SemiBold(); + public static TextStyle Normal => TextStyle.Default.FontFamily(Fonts.Verdana).FontColor(Colors.Black).FontSize(10).LineHeight(1.2f); } -} \ No newline at end of file +}