The character is wrong or is an alternate representation? For the moment
iText doesn't look at the GSUB table in the font to get the characters.

Paulo


On Mon, Jan 6, 2014 at 9:31 PM, Bill Groom <bgr...@razcall.com> wrote:

> Hello,
>
>
>
> I just discovered that I forgot to add a subject to the previous message,
> I have corrected that in this mail.
>
>
>
> I am trying to get some Japanese characters in a pdf using the otf version
> of the font KozMinPro-Regular. This seems to work, but one of the
> characters (the second one in the Japanese String) has a wrong shape. Using
> the same font in other applications (Indesign, Word, etc) result in a
> document where the character is displayed correctly.
>
>
>
> What could be the problem here? I have attached the pdf. A snippet of the
> code I am using with iText 5.4.5:
>
>
>
> Document document = new Document();
>
> PdfWriter.getInstance(document, new FileOutputStream(pdfFile));
>
> document.open();
>
> BaseFont bf = BaseFont.createFont(fontFile, BaseFont.IDENTITY_H,
> BaseFont.EMBEDDED);
>
> Font font = new Font(bf, 12);
>
> document.add(new Paragraph("Test Japanese Characters レ動停ラ直ま", font));
>
> document.close();
>
>
>
> Thanks for your help,
>
> Bill
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to