On Monday 17 July 2006 08:14, Alin Popa wrote: > I've done what you said and this is the result: (please see attached > screenshot). > The font type but not the size and in some places is bold and in others is > normal. > I think it inherits the fonts from the paragraph where it is used and this > is not apropriate, right ? Since I do not know what code you are using to produce that result I can only guess at the source. My guess is that you are using different heading styles. For each heading style there is a corresponding toc style.
writer2.getDocumentSettings().registerParagraphStyle(new
RtfParagraphStyle("toc 1", "Times New Roman", 10, Font.NORMAL, Color.BLACK));
writer2.getDocumentSettings().registerParagraphStyle(new
RtfParagraphStyle("toc 2", "Times New Roman", 9, Font.NORMAL, Color.BLACK));
Greetings,
Mark
--
Hope that the day after you die is a nice day.
My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpcLdWHoPZO6.pgp
Description: PGP signature
------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
