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 2014/09/21 18:58:33 UTC

[jira] [Comment Edited] (PDFBOX-2298) Wrong scaling of embedded type 1 font

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

Andreas Lehmkühler edited comment on PDFBOX-2298 at 9/21/14 4:58 PM:
---------------------------------------------------------------------

It looks like the glyphs of the embedded fonts are bigger than expected. If I activate the automatic scretching in drawGlyph2D (by commenting the if clause for not embedded fonts) everything works fine. But we have to do the streching for both directions (horizontal and vertical).
So, it would be easy to disable the if clause, but what about the scaling itself. For PDFBOX-870 the horizontal scaling is needed only, but for this one both are required. How can we determine which is needed or not? Any Ideas?


was (Author: lehmi):
It looks like the glyphs of the embedded fonts are bigger than expected. If I activate the automatic scretching in drawGlyph2D (by commenting the if clause for not embedded fonts) everything works fine. But we have to do the streching for both directions (horizontal and vertical).
So, it would be easy to disable the uf clause, but what about the scaling itself. For PDFBOX-870 the horizontal scaling is needed only, but for this one both are required. How can we determine which is needed or not? Any Ideas?

> Wrong scaling of embedded type 1 font
> -------------------------------------
>
>                 Key: PDFBOX-2298
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2298
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Andreas Lehmkühler
>         Attachments: PDFBOX935-data_not_extracted_1.png
>
>
> The file attached to PDFBOX-935 is rendered wrong. It seems that all embedded type1 fonts have the wrong scaling. All glyphs are to big and are overlapping.
> It worked well before merging the no-awt branch into the trunk



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)