diff --git a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs index db9ee941..298a3319 100644 --- a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs +++ b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs @@ -15,6 +15,8 @@ namespace Volian.Print.Library { public partial class PrintOverride { + public static bool CompressSub = false; + public static bool CompressSuper = false; private static System.Drawing.Color _TextColor = System.Drawing.Color.Empty; public static System.Drawing.Color TextColor { @@ -183,9 +185,15 @@ namespace Volian.Print.Library if (visualText.Format.IsUnderline) chk.SetUnderline(font.Color, 0, 0.05F, 0, -.131F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size if (visualText.Format.SuperScript > 0) + { chk.SetTextRise(.25F * chk.Font.Size); + if (PrintOverride.CompressSuper) chk.Font.Size = 9; + } else if (visualText.Format.SuperScript < 0) + { chk.SetTextRise(-.25F * chk.Font.Size); + if (PrintOverride.CompressSub) chk.Font.Size = 9; + } else chk.SetTextRise(0); switch (visualText.Format.Alignment)