I am generating a report combining ShowText and Doc.Add(paragraph)

For text printed with ShowText function I set the font to Times_Roman with
the instructions:
                            bf = BaseFont.CreateFont(BaseFont.TIMES_ROMAN,
BaseFont.CP1252, False)
                           cb.SetFontAndSize(bf,12)

After using ShowText several times I print a paragraph with:
                                prf = New Paragraph(text
                                doc.Add(prf)

When I see the report, text added with paragraph method is printed in Arial
instead o Times_Roman
It seems like paragraph method has Arial as default
How can I asign Time_Roman to the paragraph method?
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to