I am getting unexpected results when creating a
document with many numbered lists. The font of the
list numbers seems to change to a font that is not
being used on certain list items. For example, if the
font used for list items is Times then list item
numbers one and three would have a font of Times but
two would have a font of something else. I am creating
lists and list items like this:

list = new List(true, LIST_SYMBOL_INDENT_DEFAULT);

listItem = new ListItem("Blah",
FontFactory.getFont(FontFactory.TIMES,
FONT_SIZE_DEFAULT));
listItem.setAlignment(ListItem.ALIGN_JUSTIFIED);
list.add(listItem);

listItem = new ListItem();
listItem.setAlignment(ListItem.ALIGN_JUSTIFIED);
listItem.add(new Chunk("Blah",
FontFactory.getFont(FontFactory.TIMES,
FONT_SIZE_DEFAULT)));
listItem.add(new Chunk("Blah",
FontFactory.getFont(FontFactory.TIMES_BOLDITALIC,
FONT_SIZE_DEFAULT, Font.UNDERLINE)));
...         
list.add(listItem);

Thanks in advance for any suggestions that you might
have.

Peter


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to