[EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> i don't now if i had found a bug or a feature. If i use the Constructor
> ot the ListItem, every chunk added to the ListItem is wrong formated.
> I've seen that there is a master font in the phrase class.
> With an empty Constructer all is ok. I'm using now the first way of
> my example. But trying costs time ;-)

OK, I tried the problem, and now I understand the question.
I called it 'font propagation'. Is it a bug or a feature?
It's in the gray area. I originally wrote it to behave like
this because there were situations where I wanted this kind
of behavior; for instance: I create a Phrase using a certain
font, and then I want every chunk that is added to have the
same font (so that it doesn't use the default font). It may
not have been the best design decision, but it was made a
really long time ago, so if I change it, I will probably
break some existing implementations...
br,
Bruno


-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to