You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/10/26 13:32:31 UTC

[jira] [Resolved] (PDFBOX-1741) [PATCH] Text should be in italic but is rendered upright

     [ https://issues.apache.org/jira/browse/PDFBOX-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-1741.
----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.8.3)

I've to apologize. After setting up a fresh environment both cases I'd mentioned are working fine. There was an issue with 2 files (yaddatest and data-000001) from our testarena. Both are using the AWT to render the fonts which didn't work well. I fixed that and clean up some of the code.

I've added the changes in revision 1535966.

Thanks for the report and the fix!

> [PATCH] Text should be in italic but is rendered upright
> --------------------------------------------------------
>
>                 Key: PDFBOX-1741
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1741
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Vincent Hennebert
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.0.0
>
>         Attachments: FontMatrix.patch, image.pdf
>
>
> See attached PDF. The embedded font has a FontMatrix with skew values to make the font look italic. It's not taken into account by PDFBox.
> In PageDrawer and CFFGlyph2D there are a lot of manual modifications of the y coordinate to convert from the PDF coordinate system to AWT. This can be avoided by applying an initial transform to the Graphics2D instance. That allows to simplify the code quite a bit.



--
This message was sent by Atlassian JIRA
(v6.1#6144)