Embed the font.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Julio Luiz Vedovatto Neto
> Sent: Thursday, January 12, 2006 5:07 PM
> To: [email protected]
> Subject: [iText-questions] Fonts Cursive and Fantasy
> 
> Hi ppl
> 
> Sorry for the other mail (about table size and doc size).
> 
> But i have new problem
> I need to generate the pdf document in 5 different fonts:
> Generic Names
> - Sans-serif
> - Serif
> - Monospace
> - Cursive
> - Fantasy
> 
> Well, i find in the itext font times new roman (equals 
> serif), courier (equals monospace) and helvetica (equals sans-serif).
> But i need a font for cursive (in windows is comic sans) and 
> fantasy (equals impact in windows), but the server is an 
> linux SO ... then how can generate docs with cursive and 
> fantasy  fonts?
> 
> My code:
> BaseFont font = 
> BaseFont.createFont("/home/julio/Primer.ttf",BaseFont.CP1252,B
> aseFont.NOT_EMBEDDED);
> Font fonte = new Font(font, cb.getFonte_size(), Font.NORMAL);
> the primer font is a test font ok?
> 
> 
> ________________________________
> 
> Yahoo! doce lar. Faça do Yahoo! sua homepage. 
> <http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://b
> r.yahoo.com/homepageset.html> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to