List support is relatively new to iText RTF and only the basics are supported 
at this time. The list symbol is the same as the text in the list.

So, RTF List functionality is incomplete at this time. That said, if it was to 
function, this is "one" way you could do it.

Set the list symbol to any character and set your font. In a numbered list, the 
character does not matter.
list.setListSymbol(new Chunk("1",FontFactory.getFont(FontFactory.TIMES_ROMAN, 
26, Font.BOLDITALIC)));

Regards,
Howard Shank




----- Original Message ----
From: Pablo Artucio <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, August 11, 2008 4:30:34 AM
Subject: [iText-questions] RTF : How to change the generated number font for 
Numbered List

Hi,

I am creating a Numbered List in RTF. It generates the list properly but
the numbering is in different font i.e.., "Times New Roman" and text is  in 
"Arial". The question is how do I set the font uniform for the list? 

Help is greatly appreciated.



      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to