B2020-135 fixed bug where hyphens entered into tables where printed using the symbol font

This commit is contained in:
John Jenko 2020-10-02 14:01:52 +00:00
parent 8ede560ac6
commit 85bb63df46

View File

@ -906,8 +906,9 @@ public string Path
{
// B2020-100 Convert old and new form of non-breaking hyphen to hyphen
// So that underline will work properly.
// B2020-134 fix to ensure proper font is used when hyphen is replaced
rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", @"\u8209?");
// B2020-134 and B2020-135 replace hypens to the "-" character before processing for print - so that hypens are not printed using the symbol font.
rtf = rtf.Replace(@"\_", "-").Replace(@"\u8209?", "-");
rtf = FixRTFToPrint(rtf, r, c);
IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf);
Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc);
rtf2IText.DefaultFont = mySymFont;
@ -1452,7 +1453,7 @@ public string Path
vlnCells.FixHyphens(MyPara, MyTable);
vlnCells.FixBackslashes(MyPara, MyTable);
myColumnText1.AddElement(MyPara);
foreach(object obj in MyPara)
foreach (object obj in MyPara)
{
if(obj is iTextSharp.text.Image)
{