From 98b5198f6fa9cdc31453991c80e27588349e1cc4 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Thu, 23 Apr 2026 09:03:25 +0200 Subject: [PATCH] [chore:] added smallFontSize and fixed usage of fontSize and smallFontSize --- Tasks/PdfBuilder.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs index c585062..43924cf 100644 --- a/Tasks/PdfBuilder.cs +++ b/Tasks/PdfBuilder.cs @@ -27,6 +27,7 @@ public class PdfBuilder // Font settings private readonly double _fontSize = 9; + private readonly double _smallFontSize = 6; private readonly double _marginBottom = 1; // mm @@ -57,9 +58,9 @@ public class PdfBuilder chosenFamily = "Arial"; } - _boldFont = new XFont(chosenFamily, 9, XFontStyleEx.Bold); - _regularFont = new XFont(chosenFamily, 9, XFontStyleEx.Regular); - _smallFont = new XFont(chosenFamily, 6, XFontStyleEx.Regular); + _boldFont = new XFont(chosenFamily, _fontSize, XFontStyleEx.Bold); + _regularFont = new XFont(chosenFamily, _fontSize, XFontStyleEx.Regular); + _smallFont = new XFont(chosenFamily, _smallFontSize, XFontStyleEx.Regular); } private static void EnsureFontResolverRegistered()