You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Mark Tanner (JIRA)" <ji...@apache.org> on 2017/11/08 17:13:00 UTC

[jira] [Commented] (PDFBOX-3009) Unimplemented encoding method in PDCIDFontType0

    [ https://issues.apache.org/jira/browse/PDFBOX-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16244332#comment-16244332 ] 

Mark Tanner commented on PDFBOX-3009:
-------------------------------------

I just came across the same problem. 

From what I can tell, there isn't any difference between how type0 and type2 fonts map between character codes and Unicode.

Would it be possible to reuse the body of the PDCIDFontType2.encode() method?

> Unimplemented encoding method in PDCIDFontType0
> -----------------------------------------------
>
>                 Key: PDFBOX-3009
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3009
>             Project: PDFBox
>          Issue Type: Task
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Ch. Schlatter
>            Priority: Minor
>
> The method "public byte[] encode(int unicode)" isn't implemented yet and throws an UnsupportedOperationException. (Called from PDFont -> getStringWidth)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org