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()