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

John Hewson resolved PDFBOX-1250.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

{{Type1FontFormatter}} is no longer used in 2.0.0

> CFF to Type1 Font conversion is missing/corrupting the font metrics
> -------------------------------------------------------------------
>
>                 Key: PDFBOX-1250
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1250
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox, PDModel
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: example.unc.pdf, out.patch, pdfbox-type1font.pfb, test.fo
>
>
> So the problem here is easily reproducible with pretty much ANY CIDFontTypeOC 
> font file is embedded in a PDF and PDFBox is used to rasterize it, all the 
> glyphs appear to have bad horizontal metrics.
> Fontbox converts the CID encoded font into a Type1 font using the 
> org.apache.fontbox.cff.Type1FontFormatter class and for some reason, when it 
> does this, the horizontal metrics of the glyphs are lost/corrupted. This can 
> clearly be seen by putting a System.out just before the byte[] type1Bytes is 
> given to Font.createFont in PDType1CFont.java.
> I've included the PDF and the Type1 font that PDFBox gives java.awt.Font, 
> openning the font in FontForge or painting the text with Graphics2D will 
> easily illustrate this issue.
> We plan on fixing this issue in the imminent future but unfortunately, I 
> don't make the rules...



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to