Fixed logic so the superscripted text is not underlined.
This commit is contained in:
parent
13550d1b19
commit
6bcbe25d4e
@ -195,6 +195,13 @@ namespace Volian.Print.Library
|
|||||||
if (visualText.Format.IsStrikeThrough)
|
if (visualText.Format.IsStrikeThrough)
|
||||||
chk.SetUnderline(font.Color, 0, 0.05F, 0, .3F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
chk.SetUnderline(font.Color, 0, 0.05F, 0, .3F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
||||||
if (visualText.Format.IsUnderline)
|
if (visualText.Format.IsUnderline)
|
||||||
|
if (visualText.Format.SuperScript < 0)
|
||||||
|
;// Don't Underline Subscripts
|
||||||
|
//if (PrintOverride.CompressSub)
|
||||||
|
// chk.SetUnderline(font.Color, 0, 0.0666F, 0, -.425F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
||||||
|
//else
|
||||||
|
// chk.SetUnderline(font.Color, 0, 0.05F, 0, -.381F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
||||||
|
else
|
||||||
chk.SetUnderline(font.Color, 0, 0.05F, 0, -.131F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
chk.SetUnderline(font.Color, 0, 0.05F, 0, -.131F, PdfContentByte.LINE_CAP_ROUND); // Relative Based upon font size
|
||||||
if (visualText.Format.SuperScript > 0)
|
if (visualText.Format.SuperScript > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user