Re: [iText-questions] How to set font for entire document or table

2006-02-20 Thread Dinesh Mahadevan
s.sourceforge.net'" cc Subject Re: [iText-questions] How to set font for entire document or table Dinesh Mahadevan wrote: > > so, everytime i have to do this? > > Font normalFont = FontFactory.getFont(FontFactory.TIMES, 12); Define the fonts you plan to use in a separa

Re: [iText-questions] How to set font for entire document or table

2006-02-20 Thread Bruno Lowagie
Dinesh Mahadevan wrote: >Sublassing Paragraph could make your code more elegant. How do i do that? sorry for seeming noobish or naive..any tutorials or example? The iText tutorial doesn't want to replace any Java manual discussing the most elementary OO techniques. So you won't find any e

Re: [iText-questions] How to set font for entire document or table

2006-02-20 Thread Bruno Lowagie
Dinesh Mahadevan wrote: so, everytime i have to do this? Font normalFont = FontFactory.getFont(FontFactory.TIMES, 12); Define the fonts you plan to use in a separate class. Paragraph t2p1 = *new* Paragraph(*new* Chunk("This is my first paragraph. ",normalFont)); Use, construct the Para

Re: [iText-questions] How to set font for entire document or table

2006-02-20 Thread Bruno Lowagie
Dinesh Mahadevan wrote: Hi.. I was wondering .. how to set/change font for entire document or a table. The default font is Helvetica. There's no way to change this. You can subclass some objects so that they use another font by default; but it's a better idea always to set the font instead o