Hi,
I had same issues with the standard type 1 fonts for Greek, so I'm using a
.ttf font instead, as iText is mentioning in his post.
What I do is to use Arial as my font of choice as follows:
BaseFont bf = BaseFont.createFont(pathArial, BaseFont.IDENTITY_H,
BaseFont.NOT_EMBEDDED);
bf.setSubset(true);
Font _ARIAL8 = new Font(bf, 8);
pathArial is the path to the arial.ttf font in a resource file I use.
2012/11/2 iText Info <[email protected]>
> Op 2/11/2012 13:34, Pantelopoulos Athanasios schreef:
>
> Dim bfTimes As BaseFont = BaseFont.CreateFont(BaseFont.HELVETICA,
> BaseFont.WINANSI,
> BaseFont.EMBEDDED)
>
> This is the wrong font, the wrong encoding, and even the third parameter
> is wrong.
>
> 1st parameter:
> Helvetica doesn't know how to draw Greek characters. You need to use
> another font, such as Arial.
>
> 2nd parameter:
> You're saying your encoding is Cp1253, yet you're using WINANSI which is
> Cp1252.
>
> 3rd parameter:
> As documented: BaseFont.EMBEDDED will be ignored in this case. Helvetica
> is one of the 14 standard Type 1 fonts, and iText nevers embeds it unless
> you provide a font program.
>
> See for instance: http://itextpdf.com/examples/iia.php?id=198
> The resulting PDF has some Greek glyphs:
> http://examples.itextpdf.com/results/part3/chapter11/encoding_example.pdf
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php