From a4eb5935ba18dab1e82f320424d901bf0bb585f6 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 10 Nov 2021 14:35:57 +0000 Subject: [PATCH] C2021-052 Made the underline thicker when the text being underlined is bolded. (when printed) --- PROMS/Volian.Print.Library/Rtf2iTextSharp.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs index d6cb70f9..3c1d2a18 100644 --- a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs +++ b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs @@ -567,6 +567,9 @@ namespace Volian.Print.Library // Any plant that had compressed steps with the font size/underline would have this problem. An example // was Braidwood FSG-6, high level steps. float yoffund = (_MyParagraph.Leading < 12 && font.Size >= 12) ? -0.06F : -0.131F; + if(chk.Font.BaseFont.PostscriptFontName.ToUpper().Contains("BOLD")) // C2021-052 make underline thicker if text is bolded + chk.SetUnderline(font.Color, 0, 0.12F, 0, yoffund, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size + else chk.SetUnderline(font.Color, 0, 0.05F, 0, yoffund, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size }