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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user