From 11a6a82f43301aeb2dc626bb52ef1e6fd8955513 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 4 May 2021 19:46:22 +0000 Subject: [PATCH] B2021-055 When first character is a bolded symbol, the rest of the text prints bolded. --- PROMS/Volian.Print.Library/Rtf2iTextSharp.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs index dfec7258..9ae41442 100644 --- a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs +++ b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs @@ -425,6 +425,7 @@ namespace Volian.Print.Library _lastWasLineBreak = 0; // B2017-191 reset hard return count return; } + iTextSharp.text.Font font = Volian.Svg.Library.VolianPdf.GetFont(visualText.Format.Font.Name, visualText.Format.FontSize, (visualText.Format.IsBold ? iTextSharp.text.Font.BOLD : 0) + (visualText.Format.IsItalic ? iTextSharp.text.Font.ITALIC : 0)); @@ -616,7 +617,9 @@ namespace Volian.Print.Library if (_MyFont == null) { _MyFont = font; - _MyParagraph.Font = _MyFont; + //B2021-055 if first character was a bold symbol, entire line was bold + // Set the MyParagraph font to an not bolded version + _MyParagraph.Font = Volian.Svg.Library.VolianPdf.GetFont(font.Familyname, (int)font.Size, 0); } }