Hm.. I'm not sure I follow you. I don't know in advance which font will be
used by application user. All I need is to get that font, make Paragraph
from it and add it to cell. I don't see any way(but I believe that there is
one ) to create itext.font from java font i get from jlabel.getFont() or to
create a Paragraph using (String, jlabel.getFont()). 

Is it possible that IText does not support this? 




Paulo Soares-3 wrote:
> 
> If you register all the fonts in font mapper it should work.
> 
> Paulo 
> 
>> -----Original Message-----
>> From: MilanSaDlakavaMuda [mailto:[email protected]] 
>> Sent: Monday, April 20, 2009 12:57 PM
>> To: [email protected]
>> Subject: [iText-questions] CreateItext Font from Jlabel.getFont()?
>> 
>> 
>> Hi,
>> 
>> i'm exporting some data from a matrix of JLabels. It is 
>> mandatory that the
>> exported font is the same as the one in the app.
>> 
>> I need to get the same font(family, type, size etc..) as i get from
>> JLabel.getFont() to export to PDF. 
>> 
>> The Paragraph(String, Font) does only accepts itext.font.
>> 
>> What is the fastest and most reliable way to do this?
>> 
>> Thanks in advance,
>> 
>> Milan
> 
> 
> Aviso Legal:
> 
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem. 
> 
> 
> 
> Disclaimer:
> 
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> 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/CreateItext-Font-from-Jlabel.getFont%28%29--tp23135266p23138050.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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