[
https://issues.apache.org/jira/browse/PDFBOX-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15552278#comment-15552278
]
Andreas Lehmkühler commented on PDFBOX-3300:
--------------------------------------------
I've optimized the subsetter. The former version created the unicode mapping
and the widths array when calling the constructor for all glyphs of the given
font. Those more or less huge data structures were replaced with a reduced
amount of data when subsetting the font as only the used glyphs were taken into
account.
Now, only the reduced amount of data is created when subsetting the font. After
that refactoring the lately introduced method createGID2UnicodeMapping isn't
needed any more. Only if someone uses the subsetter without subsetting the font
those described huge amount a intermediate instances of ArrayLists are created.
> 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]