iText font

Does anyone know how I can use arial Font in iText.

Currently I am using Times_ROMAN because iText has no Arial_Narrow

Font font= FontFactory.getFont(FontFactory.TIMES_ROMAN, 10, Font.NORMAL);

table.addCell(new Phrase("Company:",font),new Point(0,0));

[368 byte] By [patmugaa] at [2007-10-3 5:52:14]
# 1
You are in the wrong forum, this one is for Algorithms...I see in Google that iText is a PDF library.Two possible solutions:- Read the manual;- If the manual tells nothing, iText is limited to stock PDF fonts, so you are out of luck. Perhaps with another
PhiLhoa at 2007-7-15 0:00:53 > top of Java-index,Other Topics,Algorithms...
# 2

iText uses Font object or FontFactory to get the font you require.

I tried with the following code.

But i cannot get the Arial Narrow / Tahoma either with Font or FontFactory class. It gives me only default font.

I hope you have some restrictions in getting the Font object and writing in iText

jaischaria at 2007-7-15 0:00:53 > top of Java-index,Other Topics,Algorithms...