[
https://issues.apache.org/jira/browse/PDFBOX-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529654#comment-15529654
]
Andreas Lehmkühler commented on PDFBOX-3300:
--------------------------------------------
{quote}
What we want is a simple List<Integer> getCharCodes(int gid) API which doesn't
perform any giant allocations.
{quote}
I had the same idea, but in most of the case there is a unique mapping which
would lead to an ArrayList with just one element. Furthermore that method is
only used to create the GID -> Unicode map when embedding a font which would
create a lot of these one element ArrayLists. So that I've decided to omit such
a method and provide a method to create that map instead. In the end we ended
up with a huge map in both cases, but the current solution avoids the usage of
all the ArrayLists.
{quote}
Also note that the mappings returned are not necessarily Unicode, the cmap
table can map to any character set.
{quote}
I chose the name as it contains the GID -> Unicode map for an embedded font
> Space rendered as missing glyph
> -------------------------------
>
> Key: PDFBOX-3300
> URL: https://issues.apache.org/jira/browse/PDFBOX-3300
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox, Rendering
> Affects Versions: 2.0.0, 2.0.1, 2.1.0
> Reporter: Tilman Hausherr
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.4, 2.1.0
>
> Attachments: PDFBOX-3300-p1.jpg, PDFBOX-3300-p1.pdf,
> PDFBOX-3300-patch.txt, PDFBOX_3300.patch
>
>
> In this file, the spaces are rendered with a "?".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]