John Hewson created PDFBOX-3092:
-----------------------------------

             Summary: Format 4 TTF cmap table is parsed incorrectly
                 Key: PDFBOX-3092
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3092
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: John Hewson
             Fix For: 2.1.0


Certain large Format 4 cmap tables aren't being parsed correctly by 
CmapSubtable#processSubtype4(), for example in the font "ArialUnicodeMS".

This results in missing glyphs when rendering the file from PDFBOX-2950, when 
"ArialUnicodeMS" is used as a substitute. You can force this to happen by 
changing the following line of PDCIDFontType2:

{code}
// find font or substitute
CIDFontMapping mapping = FontMappers.instance()
                                    .getCIDFont(getBaseFont(), 
getFontDescriptor(),
                                                getCIDSystemInfo());
{code}

Replace getBaseFont() with "ArialUnicodeMS"



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to