From d3d4d51826a736c29ed76ac19d3665dd984169c3 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 27 Apr 2018 14:19:59 +0000 Subject: [PATCH] B2018-066 - Support proper reporting of Boling and Italics for fonts that don't explicitly support Bolding or Italics. Specifically Arial Unicode has one font file for all styles. Arial has individual files for each style. --- PROMS/Volian.Print.Library/Rtf2Pdf.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PROMS/Volian.Print.Library/Rtf2Pdf.cs b/PROMS/Volian.Print.Library/Rtf2Pdf.cs index 3e39217c..7276a3df 100644 --- a/PROMS/Volian.Print.Library/Rtf2Pdf.cs +++ b/PROMS/Volian.Print.Library/Rtf2Pdf.cs @@ -185,8 +185,14 @@ namespace Volian.Print.Library { if (chk1.Font.BaseFont.PostscriptFontName.ToUpper().Contains("BOLD")) rtnval += " BOLD |"; + // B2018-066 Support alternative Bold Font Style + else if ((chk1.Font.Style & iTextSharp.text.Font.BOLD) == iTextSharp.text.Font.BOLD) + rtnval += " Bold |"; if (chk1.Font.BaseFont.PostscriptFontName.ToUpper().Contains("ITALIC")) rtnval += " ITALICS |"; + // B2018-066 Support alternative Italic Font Style + else if ((chk1.Font.Style & iTextSharp.text.Font.ITALIC) == iTextSharp.text.Font.ITALIC) + rtnval += " Italics |"; } if (rtnval.Length == 6) rtnval += " none";