Hello Team,

I am using iTextSharp and I am facing one problem when rendering different
types of fonts to PDF file.

I am using this code:


*****************************************************************************************************************************************************
//renderedStringInfo is a string variable,which I am rendering to PDF file

font = iTextSharp.text.FontFactory.GetFont(renderedStringInfo.Font.Name,
renderedStringInfo.Font.Size, Convert.ToInt32(renderedStringInfo.Font.Style),
iTextSharp.text.Color.BLACK);

font.Color = new iTextSharp.text.Color(brushColor);//brushColor is a
variable

baseFont = font.GetCalculatedBaseFont(false);

pdfContentByte.SetFontAndSize(baseFont, renderedStringInfo.Font.Size);

*****************************************************************************************************************************************************

In this code, if assigned some fonts(like: MornotypeCorsiva) it is assigning
to the default font style(Helvetica).

where i need to change my code please let me know.

Thanks in Advance,

T.Venkat.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to