This commit is contained in:
2011-04-06 14:28:12 +00:00
parent 92a879bb6b
commit f1074ce770
3 changed files with 102 additions and 10 deletions

View File

@@ -119,7 +119,7 @@ namespace Volian.Print.Library
myColumnText.AddElement(iParagraph);
//myColumnText.UseAscender = true;// Adjusts to the top of the text box.
int status = myColumnText.Go(true); // Check to see if it will fit on the page.
if (ColumnText.HasMoreText(status) && throwException)
if (ColumnText.HasMoreText(status) && throwException)
throw (new Exception("Paragraph longer than a page"));
return 792F - myColumnText.YLine; // This gives the height of the Paragraph
}
@@ -245,7 +245,7 @@ namespace Volian.Print.Library
}
private static bool FontIsFixed(System.Drawing.Font font)
{
iTextSharp.text.Font iFont = Rtf2iTextSharp.GetFont(font);
iTextSharp.text.Font iFont = Volian.Svg.Library.VolianPdf.GetFont(font);
float fW = iFont.BaseFont.GetWidthPointKerned("W", 12);
float fE = iFont.BaseFont.GetWidthPointKerned("!", 12);
return fW == fE;