From d2c52f99996471002f2c41b7f823c61b4a58ccf3 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 29 Sep 2020 19:55:34 +0000 Subject: [PATCH] =?UTF-8?q?B2020-134=20Replace=20the=20=E2=80=9C\=5F?= =?UTF-8?q?=E2=80=9D=20hyphen=20to=20=E2=80=9C\u8209=3F=E2=80=9D=20so=20th?= =?UTF-8?q?at=20the=20same=20font=20as=20the=20surrounding=20text=20is=20u?= =?UTF-8?q?sed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/Grid2Pdf.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index 2c0b4b49..2433e9ad 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -906,7 +906,8 @@ public string Path { // B2020-100 Convert old and new form of non-breaking hyphen to hyphen // So that underline will work properly. - rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", "-").Replace(@"\u8209?","-"); + // B2020-134 fix to ensure proper font is used when hyphen is replaced + rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", @"\u8209?"); IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf); Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc); rtf2IText.DefaultFont = mySymFont;