[chore:] added smallFontSize and fixed usage of fontSize and smallFontSize

This commit is contained in:
2026-04-23 09:03:25 +02:00
parent 1a6459d60b
commit 98b5198f6f
+4 -3
View File
@@ -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()