Venkat Tubati wrote:
> Hello Team,
>  
> Can anybody reply me how to set FontStyle by using BaseFont, i am using 
> iTextSharp.

Let's have a look at for instance the font family Arial.
Different fonts belong to this family: Arial, Arial Bold, Arial Italic,...
Mind the word 'different' in the above sentence: Arial is not the same 
font as Arial Bold. If you look at the font programs on your computer, 
you will see they are in different font files: arial.ttf, 
arrialb.ttf,... This is explained in chapter 8 of the book.
If you are only using BaseFont, you need to specify the path to the 
appropriate font file. If you want Arial, specify the path to arial.ttf; 
if you want Arial Bold, use the path to arialb.ttf.
If you use FontFactory, there is a way to automate the selection of the 
font, so that you only have to specify the font family and the font 
style. This is explained in chapter 9 of the book.
br,
Bruno

-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to