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.

This commit is contained in:
Rich 2018-04-27 14:19:59 +00:00
parent b2d714e584
commit d3d4d51826

View File

@ -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";