Section titles & section title continue messages improved

Calvert OP/STP: Improved section title continue message
Calvert OP/STP: Added a method to get tab width with no symbol font name as argument
This commit is contained in:
2014-10-21 14:42:43 +00:00
parent 5e33d7ec2a
commit 6c564c8e4d
5 changed files with 105 additions and 9 deletions

View File

@@ -77,6 +77,10 @@ namespace Volian.Print.Library
return System.Drawing.FontStyle.Italic;
return FontStyle.Regular;
}
public float GetTextWidth(VE_Font vefont, string txt)
{
return GetTextWidth(vefont, txt, SymbolFontName);
}
private float GetTextWidth(VE_Font vefont, string txt, string symblFontName)
{
System.Drawing.Font font = new System.Drawing.Font(vefont.Family, (float)vefont.Size, GetSysFontStyle(vefont));
@@ -109,8 +113,15 @@ namespace Volian.Print.Library
get { return _SeparateBullet; }
set { _SeparateBullet = value; }
}
private string _SymbolFontName;
public string SymbolFontName
{
get { return _SymbolFontName; }
set { _SymbolFontName = value; }
}
public vlnTab(PdfContentByte cb, vlnParagraph myparent, string origTab, string cleanTab, float xoffset, float yoffset, VE_Font vFont, bool doSectTab, string symblFontName, bool removedUnderline)
{
SymbolFontName = symblFontName;
bool alignAsIfBulleted = false;
ScriptCaution = (origTab.Contains("Caution") && vFont.Family == "VolianScript");
MyContentByte = cb;