Hello,
Here is a problem that I exposed to Bruno, he told me to post here.
I try to send a pdfGraphics2D to the paint method of an AWT component.
Everything works fine except that the text does not appear in PDF for
characters outside BaseFont.CP1252 subset.
It is a problem of encoding, the FontMapper, in awtToPdf always use CP1252
as subset.
I've tried to use the IDENTITY_H subset, as I think it will solve my
problem, but I got this exception :
java.io.UnsupportedEncodingException: Identity-H
    at java.lang.StringCoding.encode(Unknown Source)
    at java.lang.String.getBytes(Unknown Source)
    at com.lowagie.text.pdf.PdfEncodings.convertToBytes(PdfEncodings.java
:195)
    at com.lowagie.text.pdf.Type1Font.<init>(Type1Font.java:280)
    at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:513)
    at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:438)
    at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:385)
Is it a bug ?
Am I in the wrong way ?
Thanks for your help.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to