FontFactory.getFont("arial") returns undefined

Dhulipd2984 <[email protected]>
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
Hi All,

I am setting arial as paragraph font , but getFont always return undefined
instead of arial
Please let me know the right approach to set arial font to paragraph.



Paragraph para = new Paragraph(p);
				
para.setFont(FontFactory.getFont("arial"));

System.out.println("paragraph font"  + para.getFont().getFamilyname());   //
returns undefined

Thanks in advance
Purnima



--
View this message in context: http://itext-general.2136553.n4.nabble.com/FontFactory-getFont-arial-returns-undefined-tp4660272.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.