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:
parent
b2d714e584
commit
d3d4d51826
@ -185,8 +185,14 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
if (chk1.Font.BaseFont.PostscriptFontName.ToUpper().Contains("BOLD"))
|
if (chk1.Font.BaseFont.PostscriptFontName.ToUpper().Contains("BOLD"))
|
||||||
rtnval += " 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"))
|
if (chk1.Font.BaseFont.PostscriptFontName.ToUpper().Contains("ITALIC"))
|
||||||
rtnval += " ITALICS |";
|
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)
|
if (rtnval.Length == 6)
|
||||||
rtnval += " none";
|
rtnval += " none";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user