[
https://issues.apache.org/jira/browse/PDFBOX-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15117571#comment-15117571
]
Andreas Lehmkühler commented on PDFBOX-3092:
--------------------------------------------
CmapSubtable#processSubtype4() works as expected. The CMap doesn't define a
mapping for all glyphs of the font, there a several gaps. Fontbox is in line
with font forge, all gaps are missing in font forge as well.
> 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: [email protected]
For additional commands, e-mail: [email protected]