> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, May 24, 2004 5:19 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [iText-questions] latin2 characters in PDF
> 
> Thanks for your reply,
> 
> but embedding font will increase PDF size in order of
> hundreds kilobytes.
> 

That's life...

> My friend, our text guru, says, that every Acrobat Reader,
> ghostscript etc. comes with set of fonts, that contains
> czech characters. So it is useless to embed such fonts.
> 

Your text guru (self appointed guru or elected?) shouldn't talk about what he doesn't 
know. If you want to see what characters are supported with the built in fonts see the 
pdf reference.

Whatever you do you must embed the font, be it a TT or T1 font, if you want the czech 
characters.

Best Regards,
Paulo Soares

> The reason is, how to map these fonts. If I understood
> him, this is done by AFM or PFB files, which are font metric,
> is it true?
> 
> So I will do:
> 
> BaseBont bf = BaseFont.createFont("myfont.afm", BaseFont.WINANSI,
> BaseFont.EMBEDDED);
> 
> right?
> 
> The question is, where to find metrics files for standard fonts
> like Helvetica. My linux distribution is full of AFM files, but
> I don't understand its format well. :-(
> 
> Could you please provide me hint, how to find right metrics file?
> 
> Thank you
> 
> Leos
> 
> PS. I wrote so much info, because it may help other readers 
> in the future.
> 
> Citace Paulo Soares <[EMAIL PROTECTED]>:
> 
> > That's super easy to do in java and iText. Your problem is that the
> > built in font Helvetica doesn't have all the characters you 
> want. You
> > must use an external font, embedded, to do it. Soemthing like this:
> > 
> > BaseFont arial = 
> BaseFont.createFont("c:\\windows\\fonts\\arial.ttf",
> > BaseFont.CP1250, BaseFont.EMBEDDED);
> > Font font = new Font(arial, 12, Font.NORMAL);
> > document.add(new Paragraph("Nazdar Zdeňko. ěščřžýáíé E\u011bE",
> > font));
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] 
> > > [mailto:[EMAIL PROTECTED] On 
> > > Behalf Of Leos Literak
> > > Sent: Sunday, May 23, 2004 8:43 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [iText-questions] latin2 characters in PDF
> > > 
> > > Hi,
> > > 
> > > I'd like to use itext for producing PDF with
> > > text written in Czech language. The standard
> > > encoding is ISO-859-2 for this language, but
> > > Microsoft prefers its Windows-1250 variant,
> > > which seems to be supported by itext.
> > > 
> > > I know from people using TeX, that it is not
> > > easy to set this tool to produce PDF with text
> > > correctly displayed for our language. I worry,
> > > that java way might be even worse. Though its
> > > unicode support.
> > > 
> > > So let me introduce my problem. I want to
> > > write to PDF full list of czech characters.
> > > But some of them are not displayed. If I dont
> > > set encoding to 1250, they are skipped altogether.
> > > If I set the encoding, they are displayed as space.
> > > 
> > > BaseFont helvetica = BaseFont.createFont("Helvetica",
> > BaseFont.CP1250,
> > > BaseFont.NOT_EMBEDDED);
> > > Font font = new Font(helvetica, 12, Font.NORMAL);
> > > document.add(new Paragraph("Nazdar Zdeňko. ěščřžýáíé 
> > > E\u011bE", font));
> > > 
> > > Any idea, how to use central european characters
> > > with iText and PDF and acrobat reader?
> > > 
> > > Thanks in advance! 
> > > 
> > > Have a nice day
> > > 
> > >   Leos
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: Oracle 10g
> > > Get certified on the hottest thing ever to hit the market... 
> > > Oracle 10g. 
> > > Take an Oracle 10g class now, and we'll give you the exam FREE.
> > > http://ads.osdn.com/?ad_id149&alloc_id&#65533;66&op=ick
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > 
> > > 
> > 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... 
> Oracle 10g. 
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to