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

Vincent Hennebert commented on PDFBOX-1741:
-------------------------------------------

{quote}
* the changes in "Invoke" will lead to wrong scaled images, see PDFBOX-758
{quote}

Well I ran the test cases attached to that issue and they render fine. All 
tests also pass. It's all a bit faded in my memory now, but I think the 
manipulation in Invoke becomes unnecessary thanks to the changes made in 
PageDrawer.

{quote}
* the changes in "TTFGlyph2d" eliminate the transformation from font units to 
display units
{quote}

There was a multiplication by 1000 in PageDrawer that was cancelling out the 
division by 1000 in TTFGlyph2D, so I removed both. If I remember well that was 
also allowing me to use the FontMatrix from CFF fonts directly, without scaling 
by 1000.

Vincent

> [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
>         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)

Reply via email to