If the font is registered, as you say, the name "arial bold" or "arial"
with the attribute bold will fetch arialdb.ttf and you'll have the otion
of embedding it or not.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Abhishek Srivastava
> Sent: Tuesday, October 03, 2006 7:29 AM
> To: Post all your questions about iText here
> Subject: [iText-questions] Font Embedding Question
> 
> Hello All,
>  
> I am reading a configuration file which can contain the name 
> of the font to be used.
>  
> At the startup of my code I register all the fonts in my 
> fonts directory using the font factory class and use the font 
> name which has been specified in the configuration file.
>  
> I also want to embed the font which has been specified in the 
> configuraiton file. The question is how do I find the name of 
> the font file which contains the font?
> The configuration file is only giving me the font name like 
> "arial bold" now I have to find the file "arialdb.ttf"
>  
> Do I have to create such mapping manually or is there a way 
> to find out which is the corresponding font file for a 
> particular font?
>  
> regards,
> Abhishek.
> 


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.


-------------------------------------------------------------------------
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

Reply via email to