Thanks for replying.
I am rendering the reports to PDF files for that i am getting the collection(includes every item like text,picture...).
And the font is of type 'System.Drawing.Font'. So at first i need to convert this font to
iTextSharp.Text.Font and then need to calculate the BaseFont.
In which case i need to follow the Steps:
**************************************************************************************************
font = iTextSharp.text.FontFactory.GetFont
(
renderedStringInfo.Font.Name, renderedStringInfo.Font.Size, Convert.ToInt32(renderedStringInfo.Font.Style), iTextSharp.text.Color.BLACK); //Step1:Converting the font to
iTextSharp.text.Font type
baseFont = font.GetCalculatedBaseFont(false); //Step2: Getting the relevant BaseFont.
pdfContentByte.SetFontAndSize(baseFont, renderedStringInfo.Font.Size
); //Step3: I am assigning the basefont and size to pdfContentByte
**************************************************************************************************
With my problem i dont think that i can able to follow the
basefont.CreateFont() method which you suggested earlier.
So please suggest me how to solve my problem.
Once again thanks for your valuable reply.
Thanks in advance,
T.Venkat.