B2021-055 When first character is a bolded symbol, the rest of the text prints bolded.
This commit is contained in:
		@@ -425,6 +425,7 @@ namespace Volian.Print.Library
 | 
			
		||||
				_lastWasLineBreak = 0; // B2017-191 reset hard return count
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			iTextSharp.text.Font font = Volian.Svg.Library.VolianPdf.GetFont(visualText.Format.Font.Name, visualText.Format.FontSize,
 | 
			
		||||
				(visualText.Format.IsBold ? iTextSharp.text.Font.BOLD : 0) +
 | 
			
		||||
				(visualText.Format.IsItalic ? iTextSharp.text.Font.ITALIC : 0));
 | 
			
		||||
@@ -616,7 +617,9 @@ namespace Volian.Print.Library
 | 
			
		||||
			if (_MyFont == null)
 | 
			
		||||
			{
 | 
			
		||||
				_MyFont = font;
 | 
			
		||||
				_MyParagraph.Font = _MyFont;
 | 
			
		||||
				//B2021-055 if first character was a bold symbol, entire line was bold
 | 
			
		||||
				//          Set the MyParagraph font to an not bolded version
 | 
			
		||||
				_MyParagraph.Font = Volian.Svg.Library.VolianPdf.GetFont(font.Familyname, (int)font.Size, 0);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user