diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index c5810f80..0dd91c84 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -451,7 +451,8 @@ namespace Volian.Print.Library myPara.MultipliedLeading = 1.0f; // once there is valid value for TotalLeading (from previous line), you can use it to // calculate a MultipliedLeading to give 6 LPI (12 points) - myPara.MultipliedLeading = 12.0f / myPara.TotalLeading; + myPara.MultipliedLeading = 12.0f / myPara.TotalLeading; + myPara.MultipliedLeading = 12f / BiggestFontSize(myPara); // B2017-105, when box symbol size was increased, alignment in tables was off myPara.SpacingAfter = 8; // RHM 20120925 - Add a line to properly space text from lines. if(Rtf2Pdf.GetTableScrunchingStatus(TableScrunching.Phase2)) // RHM20150429 - Table Scrunch myPara.SpacingAfter = 0;// YAdjust_SpacingAfter; // RHM 20120925 - Add a line to properly space text from lines. @@ -493,6 +494,19 @@ namespace Volian.Print.Library } } } + + // B2017-105 if a symbol character was set to a bigger font size, then the positioning of the larger symbol character was printing too high on the line + // found with Wolf Creek use of the empty box symbol + private float BiggestFontSize(Paragraph myPara) + { + float fontSize = 12; + foreach (Chunk ck in myPara.Chunks) + { + fontSize = Math.Max(fontSize, ck.Font.Size); + if (ck.Font.Size > 12) ck.SetTextRise(-2f); + } + return fontSize; + } private void ShowChunks(System.Collections.ArrayList chunks) // RHM20150429 - Table Scrunch { StringBuilder sb = new StringBuilder(); diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index fd3c3363..221ef77e 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -471,6 +471,12 @@ namespace Volian.Print.Library // _MyLog.WarnFormat("NoteTab '{0}','{1}','{2}','{3}','{4}','{5}','{6}'", (PartsAbove[0] as vlnHeader).Text, (PartsLeft[0] as vlnTab).Text, MyItemInfo.MyProcedure.DisplayNumber, MyItemInfo.MyHLS.DisplayText, // MyItemInfo.ShortPath, MyItemInfo.FormatStepData.TabData.IdentPrint, MyItemInfo.FormatStepData.TabData.IdentEdit); // + // B2017-105 if a symbol character was set to a bigger font size, then the positioning of the larger symbol character was printing too high on the line + // found with Wolf Creek use of the empty box symbol + foreach (Chunk chk in IParagraph.Chunks) + { + if (chk.Font.Size > 16) chk.SetTextRise(-2f); + } if (MyItemInfo.IsFootnote && Processed) return yPageStart; int pagenumTran = 0; if ((MyItemInfo.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountFoldoutPgs) == E_DocStructStyle.DontCountFoldoutPgs)