[
https://issues.apache.org/jira/browse/PDFBOX-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Meyer updated PDFBOX-1505:
---------------------------------
Attachment: patch.diff
pic1.PNG
You'll have to forgive the number of lines which have changed, but there were
quite a lot of checkstyle issues which existed in the source file which hadn't
previously been resolved. Let me know what you think of if you have any
suggestions.
> CharStringRenderer does not render CharString data correctly for Type 2 CFF
> fonts
> ---------------------------------------------------------------------------------
>
> Key: PDFBOX-1505
> URL: https://issues.apache.org/jira/browse/PDFBOX-1505
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Robert Meyer
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: patch.diff, pic1.PNG
>
>
> I have a requirement to render the characters from a OTF CFF font and to get
> the bounding box for each character. I initially tried to use the
> CharStringRenderer but found the bounding box data was very different to the
> actual characters. Because the renderer outputs the character as a
> GeneralPath, I was able to draw this to a bitmap and view it. What I found
> was that the characters were not being drawn correctly which was effecting
> the bounds. I will post an image and patch in a moment to show the issue and
> resolution I used.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira