FontFactory.getFont() is returning the default font. Make sure that you've
registered the right font directories.

Paulo

On Tue, Sep 30, 2014 at 3:19 PM, Dhulipd2984 <dhulipudi.purn...@gmail.com>
wrote:

> Hi,
>
> We are generating tagged PDF using iText version 5.5.1 , we are using
> Identity-H encoding
> as shown in below sample code, it is working in windows but the same is not
> working in unix.
> Please let us know if this encoding is dependent on operating system if so
> what encoding should we use for unix.
>
>
>
> public void visitText(ITextArea textArea) {
>
>                 FontInfo fontInfo = textArea.getTextStyle().getFontInfo();
>                 Color clr = textArea.getTextStyle().getColor();
>
>                 Font font = FontFactory.getFont(fontInfo.getFontName(),
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED, fontInfo.getFontSize(),
> fontInfo.getFontStyle(),
>                                 new BaseColor(clr.getRed(),
> clr.getGreen(), clr.getBlue()));
>
> }
>
>  SEVERE
> [org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions]
> : An error happened while running the report.
> Cause:java.nio.charset.UnsupportedCharsetException: Identity-H
>         at java.nio.charset.Charset.forName(Charset.java:505)
>         at
> com.itextpdf.text.pdf.PdfEncodings.convertToBytes(PdfEncodings.java:187)
>         at com.itextpdf.text.pdf.Type1Font.<init>(Type1Font.java:278)
>         at com.itextpdf.text.pdf.BaseFont.createFont(BaseFont.java:699)
>         at com.itextpdf.text.pdf.BaseFont.createFont(BaseFont.java:622)
>         at
> com.itextpdf.text.FontFactoryImp.getFont(FontFactoryImp.java:194)
>         at
> com.itextpdf.text.FontFactoryImp.getFont(FontFactoryImp.java:146)
>         at com.itextpdf.text.FontFactory.getFont(FontFactory.java:132)
>         at
>
> com.wf.birt.report.engine.pdf.emitter.PdfExPageDeviceRender.visitText(PdfExPageDeviceRender.java:543)
>
>
> Thank you,
> Purnima
>
>
>
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/Identity-H-is-notworking-in-Unix-tp4660422.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&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
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&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