Hi,
I have same problem and, analizing source code, I found a workaround for
this problem: you can use Chunk element and use setAttributes(new
HashMap()); before adding element. So:

par = new Chunk( "",  new RtfFont( "Calisto MT", 8, RtfFont.NORMAL )  )
par.setAttributes(new HashMap());
this.addElement(par);



Krzysztof Rączka wrote:
> 
> Hey,
> I have a problem with font in cell rtf.
> So:
> par = new Paragraph( "",  new RtfFont( "Calisto MT", 8, RtfFont.NORMAL ) 
> )
> cell.add( par );
> 
> and after export to rtf I have in this cell: Times New Roman and 12 font
> size, but i have Calisto MT and 8 font size, because is only one emty cell
> and rest is not empty.
> 
> kr
> -------------------------------------------------------------------------
> 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
> 

-- 
View this message in context: 
http://www.nabble.com/font-in-table-cell-rtf-tp19305349p23683418.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to