You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/06/24 10:36:02 UTC

[jira] [Commented] (PDFBOX-3092) Format 4 TTF cmap table is parsed incorrectly

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

Tilman Hausherr commented on PDFBOX-3092:
-----------------------------------------

I'm using that font and the file renders nicely. Maybe there are different versions of that font file and one is corrupt?

> 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: 3.0.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.4.14#64029)

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