There is a way to specified the font size for the Item value in the list ?
 
I want to produce something like that
 
 
font 16      Sender
 
font 10            Name              Sebastien
font 10            Last                 Dionne
 
but with the code bellow (should works :) )
 
I obtain the item value in a bigger font size.. like 16 no matter which font size value I use in the function setListSymbol.
 
 
List list = new List(false, 20);
            list.setListSymbol(new Chunk(" ", FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD)));
            List sublist;
            sublist = new List(false, 30);
            sublist.setListSymbol(new Chunk("Name", FontFactory.getFont(FontFactory.HELVETICA, 10)));
            sublist.add("Sebastien");
            sublist.setListSymbol(new Chunk("Last", FontFactory.getFont(FontFactory.HELVETICA, 10)));
            sublist.add("Dionne");
            list.add(sublist);
 
 
font 16      Sender
 
font 10            Name              font 16 Sebastien
font 10            Last                font 16 Dionne
 

Reply via email to