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

Michael Klink commented on PDFBOX-6169:
---------------------------------------

What about an overload with an extra callback parameter?

That callback could provide a replacement for the given codepoint.

Alternatively what about a separate method that returns the index of the first 
codepoint in a string that cannot be represented  using the font? Then the 
caller could change the string to draw to contain only good codepoints.

> Request to make PDFont.encode public
> ------------------------------------
>
>                 Key: PDFBOX-6169
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6169
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 3.0.6 PDFBox
>            Reporter: Philip Helger
>            Priority: Major
>
> Please make the following methods public:
> protected abstract byte[] encode(int unicode) throws IOException;
> I am using it in ph-pdf-layout for more efficient text rendering. 
> To make sure the library works in a module-based environment, I need to get 
> rid of the package-private override: 
> [https://github.com/phax/ph-pdf-layout/issues/62]
> Thanks, Philip



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to